Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WyGFc-0003o7-Tn for pgsql-odbc@arkaria.postgresql.org; Sat, 21 Jun 2014 08:02:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WyGFb-00016h-H3 for pgsql-odbc@arkaria.postgresql.org; Sat, 21 Jun 2014 08:02:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WyGFZ-00016T-Ie for pgsql-odbc@postgresql.org; Sat, 21 Jun 2014 08:02:13 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WyGFV-0002EM-Uu for pgsql-odbc@postgresql.org; Sat, 21 Jun 2014 08:02:11 +0000 Received: from ayaki.localdomain (106-69-186-199.dyn.iinet.net.au [106.69.186.199]) by mrelayeu.kundenserver.de (node=mreue101) with ESMTP (Nemesis) id 0MD8Hs-1WuuBN0gRA-00GYID; Sat, 21 Jun 2014 10:02:06 +0200 Message-ID: <53A53BF9.1020603@2ndquadrant.com> Date: Sat, 21 Jun 2014 16:02:01 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "Inoue, Hiroshi" 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> In-Reply-To: <53A50F8E.3090109@2ndquadrant.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:WrJWwTM4Mvkkbg+0c3OfBZVaDGPf2CDowZ3rfKl2/3N DeqpEEOQkNpG1oLHqkxkOtJGZRpeSWjod1BoKibOm/j9igr+An TEQWCJ6rQsfMrd1yFumB9AkJz8wePJy8nYlJ/pvm/P2rENr0FN 3PvaozOT5mMjgcUVQ98uiPLX4AfA84cM5nLHZA0I2MFnRg0YbM qckuL16P8yIqIi1kUME9nkSLXDzylz40opL06bYR/YPvB7BgeM MxdH0Wum/UX4o6XNTNKbSj5uh7vxJWf/lwATQQPZyxsUtJ/rpc nxazbA9Hr4WdBtTUnk5WYgHcYU2vjqHr5oWNiGyY/23+6YbmcT x7YXcQP2NZEzvpUt1pxbv4xdPeh1NisDKhe8cSPwu 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 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. ... 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. 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. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc