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

From Oliver Jowett
Subject Re: 2PC transaction id
Date
Msg-id 42C4BF0B.3000002@opencloud.com
Whole thread Raw
In response to Re: 2PC transaction id  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-hackers
Oliver Jowett wrote:
> Tom Lane wrote:
> 
>>It's the TM's responsibility to deal with that.  I would expect it to
>>hand out transaction IDs that consist of a common prefix and a
>>per-database suffix, if it does not know which resources it's dealing
>>with might share a common GID namespace.

> I don't know if we can reasonably expect TMs not to hand out an
> identical XID to different RMs in the same global transaction.

Hm, I suppose we *can* assume that a TM won't hand out the same XID to
the same RM twice (except for the special case of TMJOIN), so we could
append a per-database suffix in the RM itself (e.g. JDBC driver) to
avoid conflicts within a database cluster.

-O


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: [ANNOUNCE] Language to use with SQL database - Number ONE computer
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: [ANNOUNCE] Language to use with SQL database - Number