From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cyril DE MURCIA <cyril.de-murcia@dcnsgroup.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Duplicate table name within the sme schema
Date: Tue, 08 Feb 2011 13:20:03 -0500
Message-ID: <22482.1297189203@sss.pgh.pa.us> (raw)
In-Reply-To: <29915_1297170305_4D513F81_29915_307_1_OF91DF327C.DA44FFEF-ONC1257831.004760D6-C1257831.0047D067@dcnsgroup.com>
References: <29915_1297170305_4D513F81_29915_307_1_OF91DF327C.DA44FFEF-ONC1257831.004760D6-C1257831.0047D067@dcnsgroup.com>
Cyril DE MURCIA <cyril.de-murcia@dcnsgroup.com> writes:
> We use postgresql 7.3.2 under Linux Red Hat 9.0.
> We periodically dump and restore our database. I don't know if an error
> occured during a dump restore but our DB seems to be corrupted.
> Our base contains many pair of table with the same name.
My goodness, that's a pretty obsolete system :-(. You do realize that
7.3.x was up to 7.3.21 by the time it was obsoleted?
My recollection is that this has been seen to happen when there were for
some reason duplicate rows in pg_shadow --- pg_dump does something like
"SELECT FROM pg_class JOIN pg_shadow ON relowner = usesysid", so it
would get multiple copies of any table that joined to multiple pg_shadow
entries. How you got into that state is harder to say, but if you can
get rid of the duplicate entries then your dump would go back to a sane
state.
regards, tom lane
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, cyril.de-murcia@dcnsgroup.com
Subject: Re: Duplicate table name within the sme schema
In-Reply-To: <22482.1297189203@sss.pgh.pa.us>
References: <29915_1297170305_4D513F81_29915_307_1_OF91DF327C.DA44FFEF-ONC1257831.004760D6-C1257831.0047D067@dcnsgroup.com> <22482.1297189203@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