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

From Oliver Jowett
Subject Re: 2PC transaction id
Date
Msg-id 42C48250.5090808@opencloud.com
Whole thread Raw
In response to 2PC transaction id  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: 2PC transaction id
List pgsql-hackers
Dave Cramer wrote:
> Do the transaction id's used in 2PC need to be unique across all  sessions?

They are global IDs, yes.

> Do we provide a mechanism for this ?
> 
> If not shouldn't we provide a way to create a unique transaction id ?

Well, in XA the XIDs are assigned by the TM, the individual resources
(e.g. a postgresql backend) just get *given* an XID to use.

-O


pgsql-hackers by date:

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