From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lukasz Brodziak <lukasz.brodziak@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Schema with OID 0 does not exist in pg_dump
Date: Thu, 01 Sep 2011 09:52:34 -0400
Message-ID: <25644.1314885154@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGWYGjWxx8JO+jmynXh1vFsSRh1s62qPnSqzoY4L1dTyY+KCOw@mail.gmail.com>
References: <CAGWYGjWxx8JO+jmynXh1vFsSRh1s62qPnSqzoY4L1dTyY+KCOw@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, lukasz.brodziak@gmail.com
Subject: Re: Schema with OID 0 does not exist in pg_dump
In-Reply-To: <25644.1314885154@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox