Lists: | pgsql-bugs |
---|
From: | Dirk Lutzebäck <lutzeb(at)aeccom(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-29 15:13:43 |
Message-ID: | 438C7027.904@aeccom.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Hi,
I get the following error when I call:
# pg_dump db
pg_dump: schema with OID 559701082 does not exist
this happens with 8.0.1 on RHEL 3.0. I cannot dump the database neither
with --schema-only or --data-only.
What can I do?
Thanks for help,
Dirk
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Dirk Lutzebäck <lutzeb(at)aeccom(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-29 16:40:41 |
Message-ID: | 7930.1133282441@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
> I get the following error when I call:
> # pg_dump db
> pg_dump: schema with OID 559701082 does not exist
I suspect a corrupted catalog entry. Look through your system catalogs
for an entry referring to namespace 559701082 --- you want to look in
pg_class.relnamespace, pg_proc.pronamespace, etc.
regards, tom lane
From: | Dirk Lutzebäck <lutzeb(at)aeccom(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-29 20:13:13 |
Message-ID: | 438CB659.6080600@aeccom.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
I have found and deleted an entry with pg_class.relnamespace=559701082
but nowhere else. I still cannot dump the schema. Is there something
like a system catalog integrity checker?
The problem I'm facing is the following:
cs1=# select relname from pg_class where relname like 'bm%';
relname
-----------------------------------
bm_pagehits_1133271374_047421_941
bm_pagehits_1133271378_920896_129
bm_pagehits_1133282272_744243_536
bm_pagehits_1133284780_743839_884
(4 rows)
cs1=# drop table bm_pagehits_1133271374_047421_941;
ERROR: table "bm_pagehits_1133271374_047421_941" does not exist
cs1=# drop table bm_pagehits_1133271378_920896_129;
ERROR: table "bm_pagehits_1133271378_920896_129" does not exist
cs1=# drop table bm_pagehits_1133282272_744243_536;
ERROR: table "bm_pagehits_1133282272_744243_536" does not exist
cs1=# drop table bm_pagehits_1133284780_743839_884;
ERROR: table "bm_pagehits_1133284780_743839_884" does not exist
Tom Lane wrote:
> =?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
>
>>I get the following error when I call:
>># pg_dump db
>>pg_dump: schema with OID 559701082 does not exist
>
>
> I suspect a corrupted catalog entry. Look through your system catalogs
> for an entry referring to namespace 559701082 --- you want to look in
> pg_class.relnamespace, pg_proc.pronamespace, etc.
>
> regards, tom lane
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | lutzeb(at)aeccom(dot)com |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-29 20:40:38 |
Message-ID: | 9655.1133296838@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
> The problem I'm facing is the following:
> cs1=# select relname from pg_class where relname like 'bm%';
> relname
> -----------------------------------
> bm_pagehits_1133271374_047421_941
> bm_pagehits_1133271378_920896_129
> bm_pagehits_1133282272_744243_536
> bm_pagehits_1133284780_743839_884
> (4 rows)
> cs1=# drop table bm_pagehits_1133271374_047421_941;
> ERROR: table "bm_pagehits_1133271374_047421_941" does not exist
Uh, are you sure these are in a schema that's in your search path?
regards, tom lane
From: | Dirk Lutzebäck <lutzeb(at)aeccom(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-29 20:59:15 |
Message-ID: | 438CC123.5050004@aeccom.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Yes, I think so. What search path do you mean? These tables were all
temporary tables.
Dirk
Tom Lane wrote:
> =?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
>
>>The problem I'm facing is the following:
>
>
>>cs1=# select relname from pg_class where relname like 'bm%';
>> relname
>>-----------------------------------
>> bm_pagehits_1133271374_047421_941
>> bm_pagehits_1133271378_920896_129
>> bm_pagehits_1133282272_744243_536
>> bm_pagehits_1133284780_743839_884
>>(4 rows)
>
>
>>cs1=# drop table bm_pagehits_1133271374_047421_941;
>>ERROR: table "bm_pagehits_1133271374_047421_941" does not exist
>
>
> Uh, are you sure these are in a schema that's in your search path?
>
> regards, tom lane
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | lutzeb(at)aeccom(dot)com |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-29 21:07:16 |
Message-ID: | 9989.1133298436@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
> Yes, I think so. What search path do you mean? These tables were all
> temporary tables.
In that case they're most likely *not* in your search path, unless your
session happens to have seized on the same pg_temp_nn schema they are
in (in which case it'd have deleted them, so I guess it didn't).
I'd suggest joining to pg_namespace to determine which schema(s) they
are in, and then deleting with the explicit schema, ie, DROP TABLE
pg_temp_nnn.bm_pagehits_... Note you'll probably need to be superuser
to do this.
Or you could just ignore them, because they'll get zapped automatically
next time the containing pg_temp schema gets reused.
regards, tom lane
From: | Dirk Lutzebäck <lutzeb(at)aeccom(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-30 09:06:05 |
Message-ID: | 438D6B7D.5040104@aeccom.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Hi Tom,
I have now deleted every temp table I know from pg_temp_nnn using your
approach but still can't dump the schema:
pg_dump: schema with OID 559701082 does not exist
I could'nt find any reference to 559701082 in pg_class, pg_namespace or
pg_proc.
Regards,
Dirk
Tom Lane wrote:
>=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
>
>
>>Yes, I think so. What search path do you mean? These tables were all
>>temporary tables.
>>
>>
>
>In that case they're most likely *not* in your search path, unless your
>session happens to have seized on the same pg_temp_nn schema they are
>in (in which case it'd have deleted them, so I guess it didn't).
>
>I'd suggest joining to pg_namespace to determine which schema(s) they
>are in, and then deleting with the explicit schema, ie, DROP TABLE
>pg_temp_nnn.bm_pagehits_... Note you'll probably need to be superuser
>to do this.
>
>Or you could just ignore them, because they'll get zapped automatically
>next time the containing pg_temp schema gets reused.
>
> regards, tom lane
>
>
--
/This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient, you should not copy
it, re-transmit it, use it or disclose its contents, but should return
it to the sender immediately and delete your copy from your system.
Thank you for your cooperation./
*Dirk Lutzebäck* <lutzeb(at)aeccom(dot)com> Tel +49.30.5362.1635 Fax .1638
CTO AEC/communications GmbH <http://www.aeccom.com>, Berlin, Germany
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Dirk Lutzebäck <lutzeb(at)aeccom(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-30 15:04:36 |
Message-ID: | 16584.1133363076@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
> I have now deleted every temp table I know from pg_temp_nnn using your
> approach but still can't dump the schema:
> pg_dump: schema with OID 559701082 does not exist
> I could'nt find any reference to 559701082 in pg_class, pg_namespace or
> pg_proc.
Better keep looking then. See
http://www.postgresql.org/docs/8.1/static/catalogs.html
(adjust link for your PG version) to find out which catalogs reference
pg_namespace.
regards, tom lane
From: | Dirk Lutzebäck <lutzeb(at)aeccom(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: pg_dump: schema with OID 559701082 does not exist |
Date: | 2005-11-30 21:44:11 |
Message-ID: | 438E1D2B.7020907@aeccom.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-bugs |
Yes, I finally found the reference in pg_type.
Thanks for your help!
Regards,
Dirk
Tom Lane wrote:
> =?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb(at)aeccom(dot)com> writes:
>
>>I have now deleted every temp table I know from pg_temp_nnn using your
>>approach but still can't dump the schema:
>>pg_dump: schema with OID 559701082 does not exist
>>I could'nt find any reference to 559701082 in pg_class, pg_namespace or
>>pg_proc.
>
>
> Better keep looking then. See
> http://www.postgresql.org/docs/8.1/static/catalogs.html
> (adjust link for your PG version) to find out which catalogs reference
> pg_namespace.
>
> regards, tom lane