Re: duplicated oid - Mailing list pgsql-sql

From Tom Lane
Subject Re: duplicated oid
Date
Msg-id 17886.999822924@sss.pgh.pa.us
Whole thread Raw
In response to Re: duplicated oid  (Carolyn Lu Wong <carolyn@greatpacific.com.au>)
List pgsql-sql
Carolyn Lu Wong <carolyn@greatpacific.com.au> writes:
> anyone knows if duplicated oid is possible?? 

Yes, if you don't have a unique index on it and you've generated more
than four billion rows in the database.

> is there a possible way to remove the duplicate row, now that i don't
> know which ID to use? any suggestions?

Use ctid to distinguish the rows.  Note ctid will change if you update
a row, so it's not a permanent identifier either, but it will serve for
deleting a row.
        regards, tom lane


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: duplicated oid
Next
From: Haller Christoph
Date:
Subject: Re: