Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzH5F-00013V-CE for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 03:07:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzH5E-00064f-NS for pgsql-odbc@arkaria.postgresql.org; Tue, 24 Jun 2014 03:07:44 +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 1WzH5D-00064Y-Qd for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 03:07:43 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzH5A-0002vU-Dl for pgsql-odbc@postgresql.org; Tue, 24 Jun 2014 03:07:42 +0000 Received: from ayaki.localdomain (106-69-113-203.dyn.iinet.net.au [106.69.113.203]) by mrelayeu.kundenserver.de (node=mreue104) with ESMTP (Nemesis) id 0MQfKn-1X78kP1wy5-00U4t9; Tue, 24 Jun 2014 05:07:38 +0200 Message-ID: <53A8EB74.5040806@2ndquadrant.com> Date: Tue, 24 Jun 2014 11:07:32 +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> <53A53BF9.1020603@2ndquadrant.com> <53A7762E.10705@tpf.co.jp> <53A781AE.6020009@2ndquadrant.com> <53A89AC5.4010004@tpf.co.jp> In-Reply-To: <53A89AC5.4010004@tpf.co.jp> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:ml9J+oCLpEuJHnjpzPuQn5CcJ4R/szdV1dFoUsKleWY ivMbXJxCFmp93llFTD9cGxyxCTH5Tl21lXlhRzo4x6su03nXl3 gso6IID0NrdyxqdVIpesdX7FW2Y+KisDfpEOvqB29PhGwgsAOf dalxWMpHohTULHDzko7Lb5W3N947R7HC7XqNqAoCTLmF+oqKBu OAI4TN1JKBdyFySvU67NTWSr/+U9wawt7kx4mI6NSQlLkit1Vm xGvV3DDe7PxveFfSx4iQ17LUFWP05aQ2/Pr3e+LJXyExg+9+s+ 6J1yFw0YfvwqJQZcmb84Oz3SQ1saZchjgXegoLLx/ilab+KYQq TIa6tH32nB6Jl4fson6JB6XtRbaykz302zjtEnJ/3 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/24/2014 05:23 AM, Inoue, Hiroshi wrote: > > XARMCreate() triggers xa_open() ( and xa_close()) probably so as to > check that the XADLL works. Currently xa_open() doesn't connect to > the database and simply saves the connection information for subsequent > xa_commit(), xa_rollback() or xa_recover() call. When original process > finished COMMIT/ROLLBACK PREPARED properly, No database access occurs > in msdtc process. We can change xa_open() so that it connects to the > database immediately and causes an error to XARMCreate() when the > connection fails. That's enlightening. Thankyou very much. I'll happily implement that and send in a patch. It may take a week or two as I have some other projects on the boil, but hopefully it won't take super long. -- 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