Re: Re: 8.3.5: Types with typnamespace pointing at non-existent pg_namespace oid

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: 8.3.5: Types with typnamespace pointing at non-existent pg_namespace oid
Дата
Msg-id 1652.1298393670@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 8.3.5: Types with typnamespace pointing at non-existent pg_namespace oid  (Daniel Farina <daniel@heroku.com>)
Ответы Re: Re: 8.3.5: Types with typnamespace pointing at non-existent pg_namespace oid
Список pgsql-bugs
Daniel Farina <daniel@heroku.com> writes:
> From what I can tell, people only see this problem with pg_dump, which
> is interesting. This symptom has a very long history:

Yeah.  There seems to be some well-hidden bug whereby dropping an object
sometimes fails to drop (some of?) its dependencies.  I'm still looking
for a reproducible case, or even a hint as to what the trigger condition
might be.

> In my case, there are two "missing" pg_namespace entries, and both
> have the same missing relations.

Uh, what do you mean by "same missing relations"?

> * There's also a valid version of all these relations/objects that
> *are* connected to the schema that's alive and expected.

And this isn't making any sense to this onlooker, either.  Could you
provide a more detailed explanation of the usage pattern in this
database?  I speculate that what you mean is the user periodically
drops and recreates a schema + its contents, but please be explicit.

> Sadly, for whatever reason, pg_dump --schema=public didn't seem to
> help me out. We do need a workaround if we wish to keep doing
> forensics.

Yeah, pg_dump is written to glom onto everything listed in the catalogs
and sort it out later.  So it tends to notice inconsistencies that you
might not notice in regular usage of the database.  It's sort of hard to
avoid, since for example a --schema switch depends on seeing which
objects belong to which schema ...

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #5896: When server cannot be started, first it says that it couldn't be started and then Server Started
Следующее
От: "Scott Dunbar"
Дата:
Сообщение: BUG #5898: Nested "in" clauses hide bad column names