From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Dave Cramer <pg(at)fastcrypt(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
Subject: | Re: 2PC transaction id |
Date: | 2005-07-01 03:18:52 |
Message-ID: | 42C4B61C.20808@opencloud.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tom Lane wrote:
> Oliver Jowett <oliver(at)opencloud(dot)com> writes:
>
>>Ok, so how do we get XA working when a single global transaction
>>involves two databases on the same cluster?
>
>
> 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.
Hm, that's not how I read the spec :( Throughout the API is the
implication that you can have more than one RM associated with a
transaction branch.
For example, 3.3.1 says:
> 3.3.1 Registration of Resource Managers
> Normally, a TM involves all associated RMs in a transaction branch. (The TM’s set of
> RM switches, described in Section 4.3 on page 21 tells the TM which RMs are
> associated with it.) The TM calls all these RMs with xa_start(), xa_end(), and
> xa_prepare (), although an RM that is not active in a branch need not participate further
> (see Section 2.3.2 on page 8). A technique to reduce overhead for infrequently-used
> RMs is discussed below.
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.
(anyone with experience with how existing TMs behave want to chime in?)
-O
From | Date | Subject | |
---|---|---|---|
Next Message | Marc G. Fournier | 2005-07-01 03:33:55 | Re: [ANNOUNCE] Language to use with SQL database - Number ONE computer |
Previous Message | Christopher Kings-Lynne | 2005-07-01 03:15:32 | TODO item done |
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Jowett | 2005-07-01 03:56:59 | Re: 2PC transaction id |
Previous Message | Tom Lane | 2005-07-01 02:51:44 | Re: 2PC transaction id |