Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WysE1-0003Px-VB for pgsql-odbc@arkaria.postgresql.org; Mon, 23 Jun 2014 00:35:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WysDz-00082S-Fo for pgsql-odbc@arkaria.postgresql.org; Mon, 23 Jun 2014 00:35:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WysDx-00082J-Jy for pgsql-odbc@postgresql.org; Mon, 23 Jun 2014 00:35:05 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WysDs-0006EO-1v for pgsql-odbc@postgresql.org; Mon, 23 Jun 2014 00:35:04 +0000 Received: (qmail 9273 invoked by uid 512); 23 Jun 2014 00:34:54 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 23 Jun 2014 00:34:54 -0000 Message-ID: <53A7762E.10705@tpf.co.jp> Date: Mon, 23 Jun 2014 09:34:54 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Craig Ringer CC: "pgsql-odbc@postgresql.org" Subject: Re: msdtc with 32-bit app fails to resolve in-doubt or not-notifed transactions References: <53A45B59.70303@2ndquadrant.com> <53A4A8FE.6010901@tpf.co.jp> <53A50F8E.3090109@2ndquadrant.com> <53A53BF9.1020603@2ndquadrant.com> In-Reply-To: <53A53BF9.1020603@2ndquadrant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (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