pg_class.relnamespace NOT IN pg_namespace.oid - Mailing list pgsql-general

From Ireneusz Pluta
Subject pg_class.relnamespace NOT IN pg_namespace.oid
Date
Msg-id 4F4BC2FD.3090108@wp.pl
Whole thread Raw
Responses Re: pg_class.relnamespace NOT IN pg_namespace.oid
List pgsql-general
Hello,

It apperas that I have some entries in pg_class that have relnamespace not appearing in
pg_namespace. So pg_dump fails with "pg_dump: schema with OID 52072764 does not exist", I guess.
Like the schema in question was dropped, but not cascading to all its members?

How to get rid of or fix these damaged entries? Just try to delete from pg_class manually (and then
delete files pointed to by their relfilenode)? Or create a new schema and update
pg_class.relnamespace to the oid of the new schema and then inspect and drop? Or any other
higher-level tools?

Server version is  8.4.9.

Thanks

Irek.



pgsql-general by date:

Previous
From: Lionel Elie Mamane
Date:
Subject: Does the current user have UPDATE privilege on FOO?
Next
From: Mike Blackwell
Date:
Subject: Re: Does the current user have UPDATE privilege on FOO?