Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 3AFF2476552; Thu, 6 Jun 2002 12:15:16 -0400 (EDT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by postgresql.org (Postfix) with ESMTP id AC07447657D; Thu, 6 Jun 2002 12:14:23 -0400 (EDT) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 17Fztm-0003Tl-0X; Thu, 06 Jun 2002 17:14:06 +0100 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 17Fztm-00049Q-00; Thu, 06 Jun 2002 17:14:06 +0100 Subject: Re: [GENERAL] performance issue using DBI From: Oliver Elphick To: "Joshua b. Jore" Cc: Nicolas Nolst , pgsql-admin@postgresql.org, pgsql-general@postgresql.org In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-0bJ4YhOpjAl/9rDQfuhV" X-Mailer: Ximian Evolution 1.0.5 Date: 06 Jun 2002 17:14:05 +0100 Message-Id: <1023380046.26291.2977.camel@linda> Mime-Version: 1.0 X-Archive-Number: 200206/33 X-Sequence-Number: 4468 --=-0bJ4YhOpjAl/9rDQfuhV Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2002-06-06 at 14:55, Joshua b. Jore wrote:u > Don't use currval since some other process might alter the > sequence between the time you call nextval and currval.=20 This is wrong. currval() will always return the last serial assigned in *the*same*session*. It is not affected by other users at all. --=20 Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C "Therefore being justified by faith, we have peace with God through our Lord Jesus Christ." Romans 5:1=20 --=-0bJ4YhOpjAl/9rDQfuhV Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA8/4pNYU1MND4dDBwRAhiqAJ9Y+IDEEC1qRa/zi4f8uE9Jep8oEQCgycek +yxzcf47gCesuHcMSpq2q6E= =ip+5 -----END PGP SIGNATURE----- --=-0bJ4YhOpjAl/9rDQfuhV--