From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: Craig Ringer <craig@2ndquadrant.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: msdtc with 32-bit app fails to resolve in-doubt or not-notifed transactions
Date: Mon, 23 Jun 2014 09:34:54 +0900
Message-ID: <53A7762E.10705@tpf.co.jp> (raw)
In-Reply-To: <53A53BF9.1020603@2ndquadrant.com>
References: <53A45B59.70303@2ndquadrant.com>
<53A4A8FE.6010901@tpf.co.jp>
<53A50F8E.3090109@2ndquadrant.com>
<53A53BF9.1020603@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
(2014/06/21 17:02), Craig Ringer wrote:
> On 06/21/2014 12:52 PM, Craig Ringer wrote:
>>
>>> Oops, it's my mistake. It may be better to rewrite the code completely
>>> using libpq APIs instead of ODBC APIs.
>>
>> I don't know if that'll work.
The driver doesn't pass original connection strings to XARMCreate().
It seems possible to pass LIBPQ connection strings.
>
> ... and in fact there are more issues, too.
>
> If the DSN is using SSPI, MSDTC.exe probably won't be able to
> authenticate to the DB as them. Same with any other kind of connection
> that depends on the properties of the current user account.
>
> Meh.
Yes it's a severe problem.
I'll try to check the good way to do it.
> Given the low uptake of MSDTC and XA with Pg I think a lot of this can
> just be documented away - "don't do that". So I'm not going to go
> charging around trying to find 100% perfect solutions at the expense of
> "good enough for the real world".
>
> Where possible I'd like to find ways to produce useful errors though,
> preferably at transaction enlistment time rather than commit phase II.
> Suggestions would be valued.
It's possible to reject transaction enlistments at XARMCreate() though
I'm not sure if it's possible to tell the cause clearly to users.
regards,
Hiroshi Inoue
--
I am using the free version of SPAMfighter.
SPAMfighter has removed 11041 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len
Do you have a slow PC? Try a Free scan
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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-odbc@postgresql.org
Cc: inoue@tpf.co.jp, craig@2ndquadrant.com
Subject: Re: msdtc with 32-bit app fails to resolve in-doubt or not-notifed transactions
In-Reply-To: <53A7762E.10705@tpf.co.jp>
References: <53A45B59.70303@2ndquadrant.com> <53A4A8FE.6010901@tpf.co.jp> <53A50F8E.3090109@2ndquadrant.com> <53A53BF9.1020603@2ndquadrant.com> <53A7762E.10705@tpf.co.jp>
* 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