Re: Schema with OID 0 does not exist in pg_dump - Mailing list pgsql-admin

From Tom Lane
Subject Re: Schema with OID 0 does not exist in pg_dump
Date
Msg-id 25644.1314885154@sss.pgh.pa.us
Whole thread Raw
In response to Schema with OID 0 does not exist in pg_dump  (Lukasz Brodziak <lukasz.brodziak@gmail.com>)
Responses Re: Schema with OID 0 does not exist in pg_dump  (Lukasz Brodziak <lukasz.brodziak@gmail.com>)
List pgsql-admin
Lukasz Brodziak <lukasz.brodziak@gmail.com> writes:
> When I try to make a dump of a database I get the error pg_dump: schema with
> OID 0 does not exist. How can I find the schema with this OID?

Well, you can't, because it doesn't exist ;-).  What you need to find
out is what is trying to reference it.  I'd start by looking for a zero
in one of the catalog columns that reference pg_namespace.oid, such as
pg_class.relnamespace.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Campbell, Lance"
Date:
Subject: Password when logging into postgres
Next
From: Scott Marlowe
Date:
Subject: Re: Password when logging into postgres