From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | "Joshua b(dot) Jore" <josh(at)greentechnologist(dot)org> |
Cc: | Nicolas Nolst <nnolst(at)hotmail(dot)com>, pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org |
Subject: | Re: [GENERAL] performance issue using DBI |
Date: | 2002-06-06 16:14:05 |
Message-ID: | 1023380046.26291.2977.camel@linda |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
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(dot)Elphick(at)lfix(dot)co(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Dan Langille | 2002-06-06 16:33:54 | Re: [GENERAL] performance issue using DBI |
Previous Message | Ferdinand Smit | 2002-06-06 15:38:51 | About a PL/pgSQL function |
From | Date | Subject | |
---|---|---|---|
Next Message | jtp | 2002-06-06 16:28:00 | ssl |
Previous Message | SHELTON,MICHAEL (Non-HP-Boise,ex1) | 2002-06-06 15:26:23 | Re: [HACKERS] PostgreSQL and Windows2000 and defunct processes |