From: Bryan Varner <bvarner@polarislabs.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Re: [pgjdbc] XADataSource support for resource sharing & interleaving. (#47)
Date: Tue, 19 Mar 2013 16:31:37 -0400
Message-ID: <5148CB29.9020800@polarislabs.com> (raw)
In-Reply-To: <5148507A.1030000@2ndquadrant.com>
References: <CADK3HH+mSmgESAOXMcaOx2S60SBmegw9d7B_8qAw=Fkiin4ZaA@mail.gmail.com>
<5148507A.1030000@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
> This isn't a good reason not to fix XADataSource, but it might be
> informative. If nothing else you can probably learn more about the
> JTA/XA requirements and tricks for interleaving, etc, from AS7's code.
We were in contact with some of the folks from the JBoss community
throughout our development. They were very helpful.
> I was not using 2PC and co-ordinating with other transaction managers,
> so it's entirely possible this only works for the
> one-datasource-per-XA-transaction case.
It sounds like you may have hit a use-case where you were
'automagically' getting the advantages of a Last Agent Optimization
approach. For our applications, we have multiple XA participants and the
LAO is not a feasible solution for us at this time.
There are properties in the JBoss TMs for disabling the use of
interleaving. Most TMs have properties like this. The GlassFish TM does
not. We are re-evaluating our container options. That will be a
long-term project and may solve our XA issues by allowing us to fiddle
with the TM behavior, but would not result in the PG jdbc driver
becoming more compliant with published specs. I don't hold the
unrealistic expectation that everyone will use TMs and containers that
work around bugs for specific drivers.
> Great, we'll almost certainly need that since someone's certain to be
> relying on it - intentionally or not - and unwilling/unable to change
> their code or the library they're using.
I would not have submitted a patch if the behavior to open additional
physical connections and disable interleaving support were not included.
It may even be more appropriate for this support to be disabled by
default. I'm somewhat surprised no one has demanded that rather than
debating the merits of weather or not suspend / join and resource
sharing should be supported at all.
Regards,
-Bryan
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: bvarner@polarislabs.com
Subject: Re: [pgjdbc] XADataSource support for resource sharing & interleaving. (#47)
In-Reply-To: <5148CB29.9020800@polarislabs.com>
References: <CADK3HH+mSmgESAOXMcaOx2S60SBmegw9d7B_8qAw=Fkiin4ZaA@mail.gmail.com> <5148507A.1030000@2ndquadrant.com> <5148CB29.9020800@polarislabs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox