pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: K Parker <kparker@eudoramail.com>
To: pgsql-general@hub.org
Subject: Re: sequences
Date: Wed, 20 Sep 2000 23:13:23 -0700
Message-ID: <IIKDHBOLMPKLCAAA@shared1-mail.whowhere.com> (raw)

Edward Q. Bridges's detailed statement regarding sequences, of which I extract merely the most pessimistic part:

>  begin;
>  insert into foo (A,B) values (B);
>  select currval('foo_A_seq');
>  commit;
>
>  note that the transaction is key, without
> which there's no guarantee that some other
> statement will affect the value of the
> sequence.

quite clearly conflicts what what seems to me to be the plain meaning of the manual page for CREATE SEQUENCE which states, in part:

  > multiple backends are guaranteed to 
  > allocate distinct sequence values 

Can some knowledgable person here save a bunch of us plain old user-programmers the trouble of trying to trace down what the source says and just clarify this issue?  Thanks!
>


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com



view thread (16+ messages)  latest in thread

Message-ID: <IIKDHBOLMPKLCAAA@shared1-mail.whowhere.com>
Permalink:  ../IIKDHBOLMPKLCAAA@shared1-mail.whowhere.com/
Also on:    postgresql.org/message-id/IIKDHBOLMPKLCAAA@shared1-mail.whowhere.com

 · 

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-general@postgresql.org
  Cc: kparker@eudoramail.com, pgsql-general@hub.org
  Subject: Re: sequences
  In-Reply-To: <IIKDHBOLMPKLCAAA@shared1-mail.whowhere.com>
  References: <IIKDHBOLMPKLCAAA@shared1-mail.whowhere.com>

* 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