Re: pg_dump: schema with OID 1 does not exist - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_dump: schema with OID 1 does not exist
Date
Msg-id 17904.1091714623@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump: schema with OID 1 does not exist  (Christian Platzer <christian@rainbow-solutions.net>)
List pgsql-admin
Christian Platzer <christian@rainbow-solutions.net> writes:
> When we try to backup the database, pg_dump exits with the following error:
> pg_dump: schema with OID 1 does not exist

Say again about your software version?  There is no such message in 7.3
pg_dump.

But anyway, I'd suggest looking through the system catalogs for objects
with 1 in their xxxnamespace field (pg_class.relnamespace,
pg_type.typnamespace, etc).  What you ultimately want to do, I suspect,
is manually update the namespace field for any such object.  But first
it would be interesting to understand how it got into this state.

            regards, tom lane

pgsql-admin by date:

Previous
From: Christian Platzer
Date:
Subject: pg_dump: schema with OID 1 does not exist
Next
From: G u i d o B a r o s i o
Date:
Subject: Temporary tables