![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I get the following error when I call: # pg_dump db pg_dump: schema with OID 559701082 does not exist |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
=?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 |
#5
| |||
| |||
|
|
Yes, I think so. What search path do you mean? These tables were all temporary tables. |
#6
| |||
| |||
|
|
=?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 |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
=?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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |