Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group