sequence numbers under pg concurrence model

From: scorpdaddy(at)hotmail(dot)com <scorpdaddy(at)hotmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org <pgsql-admin(at)postgresql(dot)org>
Subject: sequence numbers under pg concurrence model
Date: 2011-02-24 19:49:02
Message-ID: BLU0-SMTP1820FE6B2BC38FE48BB45D0CEDA0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

What is the expected behaviour of sequence numbers under pg concurrence model? E.g.  Uncommitted transaction 1 in progress has inserted 5 tuples into table foo.  Meanwhile uncommitted transaction 2 in progress inserts 100 tuples into table foo.  If the sequence number for the pk started at 1000 before these transactions, what are the sequence numbers for transaction 1, 2, and the final sequence number if they both commit?  One rollback's?  Both rollback? One hangs open while the other commits?  One hang and one rollback's?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Frank Heikens 2011-02-24 19:54:53 Re: sequence numbers under pg concurrence model
Previous Message Dolafi, Tom 2011-02-24 18:28:39 transaction wraparound