Re: Getting rid of duplicate tables.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jared Carr <jared(at)89glass(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting rid of duplicate tables.
Date: 2004-01-19 18:56:29
Message-ID: 9511.1074538589@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jared Carr <jared(at)89glass(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2004-01-19 18:59:48 Re: Detecting database corruption
Previous Message Keith C. Perry 2004-01-19 18:50:13 Re: Connecting using an existing socket (libpq).