pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Joshua b. Jore <josh@greentechnologist.org>
Cc: Nicolas Nolst <nnolst@hotmail.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] performance issue using DBI
Date: 06 Jun 2002 17:14:05 +0100
Message-ID: <1023380046.26291.2977.camel@linda> (raw)
In-Reply-To: <Pine.BSO.4.44.0206060832210.2703-100000@kitten.greentechnologist.org>
References: <Pine.BSO.4.44.0206060832210.2703-100000@kitten.greentechnologist.org>

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. 

This is wrong.  currval() will always return the last serial assigned in
*the*same*session*.  It is not affected by other users at all.

-- 
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 

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (9+ messages)  latest in thread

Message-ID: <1023380046.26291.2977.camel@linda>
Permalink:  ../1023380046.26291.2977.camel@linda/
Also on:    postgresql.org/message-id/1023380046.26291.2977.camel@linda

 · 

reply

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: olly@lfix.co.uk, josh@greentechnologist.org, nnolst@hotmail.com, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] performance issue using DBI
  In-Reply-To: <1023380046.26291.2977.camel@linda>
  References: <Pine.BSO.4.44.0206060832210.2703-100000@kitten.greentechnologist.org> <1023380046.26291.2977.camel@linda>

* 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