Re: Error: duplicate key violates unique constraint - "pg_toast_3270368541_index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tomeh, Husam" <HTomeh(at)facorelogic(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Error: duplicate key violates unique constraint - "pg_toast_3270368541_index
Date: 2007-11-15 16:49:44
Message-ID: 4149.1195145384@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Tomeh, Husam" <HTomeh(at)facorelogic(dot)com> writes:
> Thanks Tom. As a temporarily solution though, would reorging the table
> (pgdump,drop/truncate, reload) resolve the OID collision issue and buy
> us some time until we get the upgrade going?

Probably. I wouldn't bother with pg_dump, just INSERT ... SELECT
the data into a new table and then rename that one into place.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2007-11-15 16:52:05 Re: any way to make query use index?
Previous Message Chris Hoover 2007-11-15 16:37:49 Re: any way to make query use index?