Re: pg_dump problem: 'pg_dump: schema with OID 1515546 does not exist' - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_dump problem: 'pg_dump: schema with OID 1515546 does not exist'
Date
Msg-id 13986.1190645934@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump problem: 'pg_dump: schema with OID 1515546 does not exist'  (David Brain <dbrain@bandwidth.com>)
Responses Re: pg_dump problem: 'pg_dump: schema with OID 1515546 does not exist'
List pgsql-general
David Brain <dbrain@bandwidth.com> writes:
> I am getting the error mentioned in the subject ('pg_dump: schema
> with OID 1515546 does not exist') when I try to back up one database
> out of a cluster of half a dozen or so on our server.

Well, for starters, troll through the system catalogs in that database
to see which object(s) reference that schema OID, eg,
    select * from pg_class where relnamespace = 1515546;
and similarly for other catalogs that have a namespace column.  Once you
know where the problem is it'll be easier to figure out what happened
and what to do about it.

What PG version is this?

            regards, tom lane

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: SRF called with optional NULL input runs 7x slower
Next
From: Tom Lane
Date:
Subject: Re: DELETE FROM pg_class