pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Farina <daniel@heroku.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Re: 8.3.5: Types with typnamespace pointing at non-existent pg_namespace oid
Date: Tue, 22 Feb 2011 11:54:30 -0500
Message-ID: <1652.1298393670@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTi=jba6ZSkV5_kuJvDezv9yZhSEDser1=5AwSPoM@mail.gmail.com>
References: <AANLkTintLoKYsowSW5XiUW_eaX-xCGe+SvyrdzDR1HE3@mail.gmail.com>
	<AANLkTinN1=uth3zppMeUjetWev6gRKLWSGj8mt4jQyLZ@mail.gmail.com>
	<AANLkTi=jba6ZSkV5_kuJvDezv9yZhSEDser1=5AwSPoM@mail.gmail.com>

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



view thread (6+ messages)  latest in thread

Message-ID: <1652.1298393670@sss.pgh.pa.us>
Permalink:  ../1652.1298393670@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1652.1298393670@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, daniel@heroku.com
  Subject: Re: 8.3.5: Types with typnamespace pointing at non-existent pg_namespace oid
  In-Reply-To: <1652.1298393670@sss.pgh.pa.us>
  References: <AANLkTintLoKYsowSW5XiUW_eaX-xCGe+SvyrdzDR1HE3@mail.gmail.com> <AANLkTinN1=uth3zppMeUjetWev6gRKLWSGj8mt4jQyLZ@mail.gmail.com> <AANLkTi=jba6ZSkV5_kuJvDezv9yZhSEDser1=5AwSPoM@mail.gmail.com> <1652.1298393670@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox