Received: from bowser.Stanford.EDU (bowser.Stanford.EDU [128.12.161.40]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9TJMhP49377 for ; Mon, 29 Oct 2001 14:22:43 -0500 (EST) (envelope-from dugan@smi.stanford.edu) Received: by bowser.Stanford.EDU (Postfix, from userid 500) id 6BD651451C; Mon, 29 Oct 2001 11:20:57 -0800 (PST) Date: Mon, 29 Oct 2001 11:20:57 -0800 From: Jon Dugan To: pgsql-admin@postgresql.org Subject: corrupt pg_language index Message-ID: <20011029112057.A26303@bowser.Stanford.EDU> References: <003501c16075$0f8eee30$0a00a8c0@craig> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003501c16075$0f8eee30$0a00a8c0@craig>; from cjarman@source.com.au on Mon, Oct 29, 2001 at 11:27:22PM +1100 URL: http://smi.stanford.edu/people/dugan X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 7bit X-Archive-Number: 200110/251 X-Sequence-Number: 2495 hi all- I have a problem with pg_language_oid_index on one db. This problem makes vacuum fail, both from the command line (vacuumdb) and within the DB, but therwise the db is still working ok. prompt> /usr/bin/vacuumdb -a -z -q ... several other db vacuum ok. on db iscb ... NOTICE: Rel pg_class: TID 0/46: OID IS INVALID. TUPGONE 0. ERROR: cannot find attribute 1 of relation pg_language_oid_index vacuumdb: vacuum iscb failed -- alternatly, entering the db with "psql iscb" works, iscb=# vacuum verbose; ... ... ... NOTICE: --Relation pg_amproc-- NOTICE: Pages 1: Changed 0, reaped 0, Empty 0, New 0; Tup 54: Vac 0, Keep/VTL 0/0, Crash 0, UnUsed 0, MinLen 46, MaxLen 46; Re-using: Free/Avail. Space 0/0; EndEmpty/Avail. Pages 0/0. CPU 0.00s/0.00u sec. NOTICE: --Relation pg_language-- NOTICE: Pages 1: Changed 0, reaped 0, Empty 0, New 0; Tup 3: Vac 0, Keep/VTL 0/0, Crash 0, UnUsed 0, MinLen 79, MaxLen 84; Re-using: Free/Avail. Space 0/0; EndEmpty/Avail. Pages 0/0. CPU 0.00s/0.00u sec. ERROR: cannot find attribute 1 of relation pg_language_oid_index iscb=# iscb=# SELECT * from pg_language ; ERROR: cannot find attribute 1 of relation pg_language_oid_index iscb=# iscb=# \d pg_language_oid_index PQgetvalue: ERROR! tuple number 0 is out of range 0..-1 PQgetvalue: ERROR! tuple number 0 is out of range 0..-1 Segmentation fault prompt> ACK! any suggestions? running Mandrake 8 / Linux uname = Linux bowser.Stanford.EDU 2.4.3-20mdksmp #1 SMP Sun Apr 15 22:32:27 CEST 2001 i686 unknown rpm -qa | grep -i postgr postgresql-libs-7.1.2-19mdk postgresql-7.1.2-19mdk postgresql-devel-7.1.2-19mdk postgresql-server-7.1.2-19mdk postgresql-contrib-7.1.2-19mdk Thanks, Jon dugan@smi.stanford.edu