Re: Error when trying to use pg_dump on 8.3 after minor release update

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joshua Berry <yoberi(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Error when trying to use pg_dump on 8.3 after minor release update
Date: 2009-10-23 16:43:37
Message-ID: 20814.1256316217@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joshua Berry <yoberi(at)gmail(dot)com> writes:
> [jberry(at)dms dms]$ pg_dump -U dms_user -s dms > dms_s.sql
> pg_dump: SQL command failed
> pg_dump: Error message from server: ERROR: could not open relation
> with OID 27224
> pg_dump: The command was: SELECT
> pg_catalog.pg_get_viewdef('27289'::pg_catalog.oid) as viewdef

This looks like catalog corruption :-(. Can you find a pg_class row
with that OID, ie
select * from pg_class where oid = 27224
I expect probably not, but then try it with enable_indexscan and
enable_bitmapscan turned off. If that finds a row, then what you
have is a corrupt pg_class_oid_index and you can probably get out
of trouble by reindexing it. You should also look at what 27289
is so you know what view is causing the problem.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nim Li 2009-10-23 16:45:21 Re: Question of using trigger's OLD in EXECUTE
Previous Message Joshua Berry 2009-10-23 16:36:35 Re: Error when trying to use pg_dump on 8.3 after minor release update