Re: Getting rid of duplicate tables. - Mailing list pgsql-general

From Tom Lane
Subject Re: Getting rid of duplicate tables.
Date
Msg-id 9511.1074538589@sss.pgh.pa.us
Whole thread Raw
In response to Getting rid of duplicate tables.  (Jared Carr <jared@89glass.com>)
Responses Re: Getting rid of duplicate tables.  (Jared Carr <jared@89glass.com>)
List pgsql-general
Jared Carr <jared@89glass.com> writes:
> First I wish I knew how this was caused but here is our problem.
> Sometime in the recent past we got a duplicate table.  Here is the
> result of a pg_dump with a pg_restore for just that table.

This should be fairly easy to fix: manually DELETE the extra pg_class
entry (selecting it by ctid, since there isn't any other way to select
just one of them).  However, please don't do that until we've exhausted
the opportunity to figure out how this happened.

For starters, what PG version is this?  And how many entries are there
in pg_class at the moment?  (The output from "VACUUM VERBOSE pg_class"
would be useful to look at.)

            regards, tom lane

pgsql-general by date:

Previous
From: "Keith C. Perry"
Date:
Subject: Re: Connecting using an existing socket (libpq).
Next
From: Andrew Sullivan
Date:
Subject: Re: Detecting database corruption