Re: 2PC transaction id - Mailing list pgsql-hackers

From Tom Lane
Subject Re: 2PC transaction id
Date
Msg-id 23603.1120184506@sss.pgh.pa.us
Whole thread Raw
In response to 2PC transaction id  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-hackers
Dave Cramer <pg@fastcrypt.com> writes:
> Do the transaction id's used in 2PC need to be unique across all  
> sessions?
> Do we provide a mechanism for this ?
> If not shouldn't we provide a way to create a unique transaction id ?

I see no value in that at all.  The point of 2PC is to synchronize with
other databases running other transactions; an ID assigned by one
database that can only be guaranteed unique with respect to that
database is really pretty useless.  In practice the IDs will be assigned
by the transaction manager module according to its own needs.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: 2PC transaction id
Next
From: Tom Lane
Date:
Subject: Re: 2PC transaction id