Re: how to determine OID of the row I just inserted??? - Mailing list pgsql-general

From Tom Lane
Subject Re: how to determine OID of the row I just inserted???
Date
Msg-id 12380.1044544104@sss.pgh.pa.us
Whole thread Raw
In response to how to determine OID of the row I just inserted???  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Responses Re: how to determine OID of the row I just inserted???  (Joe Conway <mail@joeconway.com>)
Re: how to determine OID of the row I just inserted???  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
List pgsql-general
"Jules Alberts" <jules.alberts@arbodienst-limburg.nl> writes:
> Something like lastval() IMHO is way too risky.

currval() is what you want, and it is *not* risky.  Read the sequence
documentation.

            regards, tom lane

pgsql-general by date:

Previous
From: "Jules Alberts"
Date:
Subject: Re: how to determine OID of the row I just inserted???
Next
From: Peter Choe
Date:
Subject: password() function?