Re: pg_dump: schema with OID 1 does not exist

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christian Platzer <christian(at)rainbow-solutions(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump: schema with OID 1 does not exist
Date: 2004-08-05 14:03:43
Message-ID: 17904.1091714623@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Christian Platzer <christian(at)rainbow-solutions(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message G u i d o B a r o s i o 2004-08-05 14:33:20 Temporary tables
Previous Message shashi singh 2004-08-05 13:12:39 PostgreSQL and IRIX FailSafe