X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 4C3DA30EE9A for ; Mon, 16 Jun 2003 15:16:41 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 40432-08 for ; Mon, 16 Jun 2003 12:16:30 -0300 (ADT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by svr1.postgresql.org (Postfix) with SMTP id 539B630ED1B for ; Mon, 16 Jun 2003 12:16:30 -0300 (ADT) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa17220; 16 Jun 2003 11:16 EDT Received: from virginia.edu (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.11.7/8.11.6) with ESMTP id h5GFGRl34398 for ; Mon, 16 Jun 2003 11:16:28 -0400 Message-ID: <3EEDE12C.30401@virginia.edu> Date: Mon, 16 Jun 2003 11:24:28 -0400 From: Jodi Kanter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Postgres Admin List Subject: psql sequence question Content-Type: multipart/alternative; boundary="------------020404070500040702090507" X-Archive-Number: 200306/166 X-Sequence-Number: 9157 --------------020404070500040702090507 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit If I'm using transactions (not autocommit), are sequences atomic? In other words, after inserting a record to a table that uses sequence A, am I guaranteed that select last_value on sequence A is atomic, and cannot be interfered with by other transactions using that same sequence? Sequence A is used by several tables. Thanks, Jodi - _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu --------------020404070500040702090507 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
If I'm using transactions (not autocommit), are sequences atomic?

In other words, after inserting a record to a table that 
uses sequence A, am I guaranteed that select last_value on 
sequence A is atomic, and cannot be interfered with by other 
transactions using that same sequence? Sequence A is used by
several tables.

Thanks,
Jodi
-
________________________________

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu


 

 

 

--------------020404070500040702090507--