dbTalk Databases Forums  

[BUGS] pg_dump: schema with OID 559701082 does not exist

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] pg_dump: schema with OID 559701082 does not exist in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dirk Lutzebäck
 
Posts: n/a

Default [BUGS] pg_dump: schema with OID 559701082 does not exist - 11-29-2005 , 10:07 AM






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

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] pg_dump: schema with OID 559701082 does not exist - 11-29-2005 , 10:41 AM






=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb (AT) aeccom (DOT) com> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] pg_dump: schema with OID 559701082 does not exist - 11-29-2005 , 02:40 PM



=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb (AT) aeccom (DOT) com> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #4  
Old   
Dirk Lutzebäck
 
Posts: n/a

Default Re: [BUGS] pg_dump: schema with OID 559701082 does not exist - 11-29-2005 , 02:59 PM



Yes, I think so. What search path do you mean? These tables were all
temporary tables.

Dirk


Tom Lane wrote:
Quote:
=?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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
  #5  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] pg_dump: schema with OID 559701082 does not exist - 11-29-2005 , 03:07 PM



=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb (AT) aeccom (DOT) com> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
  #6  
Old   
Dirk Lutzebäck
 
Posts: n/a

Default Re: [BUGS] pg_dump: schema with OID 559701082 does not exist - 11-29-2005 , 05:21 PM



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:
Quote:
=?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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
  #7  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] pg_dump: schema with OID 559701082 does not exist - 11-30-2005 , 09:04 AM



=?ISO-8859-1?Q?Dirk_Lutzeb=E4ck?= <lutzeb (AT) aeccom (DOT) com> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
  #8  
Old   
Dirk Lutzebäck
 
Posts: n/a

Default Re: [BUGS] pg_dump: schema with OID 559701082 does not exist - 11-30-2005 , 03:44 PM



Yes, I finally found the reference in pg_type.

Thanks for your help!

Regards,

Dirk


Tom Lane wrote:
Quote:
=?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

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.