Re: dump error parent table oid of pg_rewrite entry oid not found - Mailing list pgsql-general

From Tom Lane
Subject Re: dump error parent table oid of pg_rewrite entry oid not found
Date
Msg-id 22211.1270674333@sss.pgh.pa.us
Whole thread Raw
In response to dump error parent table oid of pg_rewrite entry oid not found  (Doug Kyle <dkyle@grpl.org>)
List pgsql-general
Doug Kyle <dkyle@grpl.org> writes:
> I have this error from pg_dumpall:
> pg_dump: failed sanity check, parent table OID 27974 of pg_rewrite entry
> OID 28689 not found
> ...
> So I'm thinking I'll delete from pg_rewrite where oid=28689, but I'm not
> sure if I should do anything with pg_class or pg_depends - or other
> tables?  Any advice?

It's probably sufficient to drop the pg_rewrite entry.  There are likely
to be some pg_depend entries left behind but I don't think they are
going to hurt you.  If you want to be sure, try reloading the database
from the dump file.

            regards, tom lane

pgsql-general by date:

Previous
From: Vick Khera
Date:
Subject: Re: Solid State Drives with PG
Next
From: John R Pierce
Date:
Subject: Re: Solid State Drives with PG