Re: select first occurrence of a table - Mailing list pgsql-general

From Tom Lane
Subject Re: select first occurrence of a table
Date
Msg-id 2503.1051909609@sss.pgh.pa.us
Whole thread Raw
In response to Re: select first occurrence of a table  (Erik Ronström <kvarken@yahoo.com>)
List pgsql-general
=?iso-8859-1?q?Erik=20Ronstr=F6m?= <kvarken@yahoo.com> writes:
> If the table has OIDs (which is the default), you can use the OID as a
> unique identifier for a row.

You could also use CTID in the same way; this works on all tables.
It does require that no one else is trying to update the same row at
about the same time, though.

            regards, tom lane


pgsql-general by date:

Previous
From: Erik Ronström
Date:
Subject: Re: Connection closed
Next
From: "Bob Krus"
Date:
Subject: PostgreSQL Inquiry