pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carolyn Lu Wong <carolyn@greatpacific.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: duplicated oid
Date: Thu, 06 Sep 2001 20:35:24 -0400
Message-ID: <17886.999822924@sss.pgh.pa.us> (raw)
In-Reply-To: <3B980C81.365226FF@greatpacific.com.au>
References: <3B930A0A.64EC6D82@greatpacific.com.au>
	<3B980C81.365226FF@greatpacific.com.au>

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



view thread (4+ messages)

Message-ID: <17886.999822924@sss.pgh.pa.us>
Permalink:  ../17886.999822924@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17886.999822924@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, carolyn@greatpacific.com.au
  Subject: Re: duplicated oid
  In-Reply-To: <17886.999822924@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox