Re: SQL-question: returning the id of an insert querry - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: SQL-question: returning the id of an insert querry
Date
Msg-id 20031110161259.GA6483@dcc.uchile.cl
Whole thread Raw
In response to Re: SQL-question: returning the id of an insert querry  (Scott Chapman <scott_list@mischko.com>)
List pgsql-general
On Mon, Nov 10, 2003 at 08:09:29AM -0800, Scott Chapman wrote:

> Chronological events here:
>
> X inserts a new record into A.
> Y inserts a new record into A.
> X fetches currval of the SA. What value does X get in this case, the one
> from X's insert or Y's?

X's.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"¿Qué importan los años?  Lo que realmente importa es comprobar que
a fin de cuentas la mejor edad de la vida es estar vivo"  (Mafalda)

pgsql-general by date:

Previous
From: Scott Chapman
Date:
Subject: Re: SQL-question: returning the id of an insert querry
Next
From: "David Green"
Date:
Subject: Re: SQL-question: returning the id of an insert querry