pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Neish <peter@austehc.unimelb.edu.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump: schema with OID xxxxxxxx does not exist
Date: Thu, 02 Nov 2006 10:33:53 +1100
Message-ID: <45492EE1.2080706@austehc.unimelb.edu.au> (raw)
In-Reply-To: <3708.1162176279@sss.pgh.pa.us>
References: <45418477.2020400@austehc.unimelb.edu.au>
	<6801.1161967193@sss.pgh.pa.us>
	<45455FA3.2080706@austehc.unimelb.edu.au>
	<3550.1162174753@sss.pgh.pa.us>
	<454562F6.7020501@austehc.unimelb.edu.au>
	<3708.1162176279@sss.pgh.pa.us>

>
>> Yes, 32 entries.
>>     
>
> Wow, that's the first case I've heard of where whole tables were left
> around with no matching schema.  You'll probably find you have to drop
> both the pg_class and pg_type rows before pg_dump will work --- AFAIR
> you shouldn't have to clean out pg_attribute.
>
>   

Thanks Tom. I was able to run pg_dump successfully after clearing those 
rows from the pg_class and pg_type tables.

> Since it's hard to tell exactly what's going on here, I'd suggest a
> pg_dumpall/initdb/reload sequence to be sure there isn't any other
> undetected corruption.  Be sure to check that the dump contains
> everything you expect though.
>   
Will do this. Sounds like there's some hairy stuff going on and a good 
cleanout would be a good idea (as well as a PG upgrade).

Thanks again for your help.

Peter




view thread (7+ messages)

Message-ID: <45492EE1.2080706@austehc.unimelb.edu.au>
Permalink:  ../45492EE1.2080706@austehc.unimelb.edu.au/
Also on:    postgresql.org/message-id/45492EE1.2080706@austehc.unimelb.edu.au

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter@austehc.unimelb.edu.au, tgl@sss.pgh.pa.us
  Subject: Re: pg_dump: schema with OID xxxxxxxx does not exist
  In-Reply-To: <45492EE1.2080706@austehc.unimelb.edu.au>
  References: <45418477.2020400@austehc.unimelb.edu.au> <6801.1161967193@sss.pgh.pa.us> <45455FA3.2080706@austehc.unimelb.edu.au> <3550.1162174753@sss.pgh.pa.us> <454562F6.7020501@austehc.unimelb.edu.au> <3708.1162176279@sss.pgh.pa.us> <45492EE1.2080706@austehc.unimelb.edu.au>

* 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