Re: pg_dump: schema with OID xxxxxxxx does not exist

From: Peter Neish <peter(at)austehc(dot)unimelb(dot)edu(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: pg_dump: schema with OID xxxxxxxx does not exist
Date: 2006-10-30 02:27:02
Message-ID: 454562F6.7020501@austehc.unimelb.edu.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom Lane wrote:
> Peter Neish <peter(at)austehc(dot)unimelb(dot)edu(dot)au> writes:
>
>> Tom Lane wrote:
>>
>>> These are composite-type entries, which means there should be
>>> associated entries in pg_class --- with OIDs 37894096 and 37894098
>>> respectively. Did you check to see if those are still there?
>>>
>
>
>> Yes, they are there. Can I safely delete the rows from both the pg_type
>> and the pg_class tables?
>>
>
> Oh, that's interesting. Are there entries in pg_attribute for these
> tables? Look for attrelid = 37894096 or 37894098. What PG version
> is this exactly?
>
> regards, tom lane
>
>
Yes, 32 entries.

# select * from pg_attribute where attrelid = 37894096 or attrelid =
37894098;
attrelid | attname | atttypid | attstattarget | attlen | attnum |
attndims | attcacheoff | atttypmod | attbyval | attstorage | attisset |
attalign | attnotnull | atthasdef | attisdropped | attislocal | attinhcount
----------+---------------+----------+---------------+--------+--------+----------+-------------+-----------+----------+------------+----------+----------+------------+-----------+--------------+------------+-------------
37894096 | tableoid | 26 | 0 | 4 | -7
| 0 | -1 | -1 | t | p | f
| i | t | f | f | t
| 0
37894096 | cmax | 29 | 0 | 4 | -6
| 0 | -1 | -1 | t | p | f
| i | t | f | f | t
| 0
...
37894098 | bid | 23 | -1 | 4 | 10
| 0 | -1 | -1 | t | p | f
| i | t | t | f | t
| 0
(32 rows)

Its runnign PG Version 7.4.7

Cheers,

Peter

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2006-10-30 02:44:39 Re: pg_dump: schema with OID xxxxxxxx does not exist
Previous Message Tom Lane 2006-10-30 02:19:13 Re: pg_dump: schema with OID xxxxxxxx does not exist