From: Joel Stevenson <jstevenson@bearriver.com>
To: pgsql-admin@postgresql.org
Subject: Re: SERIAL Field
Date: Mon, 6 May 2002 12:29:17 -0700
Message-ID: <a05111709b8fc88c96775@[192.168.1.100]> (raw)
In-Reply-To: <20010507142738.DE7B63F43@bast.unixathome.org>
References: <20010507124341.00EE03F43@bast.unixathome.org>
<20010507142738.DE7B63F43@bast.unixathome.org>
> > "You say nextval() + write, I say write + currval()..."
>
>So long as a given application does not mix the two approaches, everything
>should be fine.
Though, if you have multiple clients inserting into the table, there
is a chance that between client A inserting the record and then
calling currval(), client B could have performed an insert, in which
case client A gets the value of client B's record. 'nextval() +
write' avoids this possible overlap.
--
Joel Stevenson
Bear River Associates, Inc.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jstevenson@bearriver.com
Subject: Re: SERIAL Field
In-Reply-To: <a05111709b8fc88c96775@[192.168.1.100]>
References: <20010507124341.00EE03F43@bast.unixathome.org> <20010507142738.DE7B63F43@bast.unixathome.org> <a05111709b8fc88c96775@[192.168.1.100]>
* 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