Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WyDIL-00007p-Mh for pgsql-odbc@arkaria.postgresql.org; Sat, 21 Jun 2014 04:52:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WyDIK-0000DV-Bb for pgsql-odbc@arkaria.postgresql.org; Sat, 21 Jun 2014 04:52:52 +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 1WyDII-0000DG-CN for pgsql-odbc@postgresql.org; Sat, 21 Jun 2014 04:52:50 +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 1WyDIA-0007Ft-Fg for pgsql-odbc@postgresql.org; Sat, 21 Jun 2014 04:52:48 +0000 Received: from ayaki.localdomain (106-69-186-199.dyn.iinet.net.au [106.69.186.199]) by mrelayeu.kundenserver.de (node=mreue102) with ESMTP (Nemesis) id 0MX0eS-1XAQel1drA-00W200; Sat, 21 Jun 2014 06:52:37 +0200 Message-ID: <53A50F8E.3090109@2ndquadrant.com> Date: Sat, 21 Jun 2014 12:52:30 +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> In-Reply-To: <53A4A8FE.6010901@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:WHOQAFrzrUSlHQEnV5OjKZpOeUoWMGwpp3UYJsG7aAB F4Fu0DVSnyWZqGKchHR1KClms9QAYQcVAlQna+9E2/3cibk/QR Z8NIyYEGsSc7Y56JNY6hOVz7lYa3/XJXlFkLR6XLLGLEzbTq1c VNg++wn++rPdUdn5+UdjwzoYZ6sckKtjzxhITrVlKixKlNlKlB o9MOWNbxxlFO0QLup55oicC9WeqkKcPh0Bts65QG1kFZ5oWW16 yxFCQ46CAArY6p3q2uDByT0pvo+cukOmMDyIBeaXUyjrfRKELY dhou6dSCV8GdWO+UH/3MPcBJy7ZUFWj+6bXX907rhbYsJEy1V4 l8zY5y+g/0QgbTCiVc/NYWwXJDu8Q/adb78YOxvBq 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 > 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. Nothing requires the transaction co-ordinator to be local to the database. The ODBC app using the local MSDTC might be talking to an Amazon RDS instance for all we know or care. All the local transaction co-ordinator needs is to be able to talk to the database. That becomes a problem if the user is using a pre-defined System DSN, User DSN or File DSN rather than a string DSN like in the test case I've been working with. At least with a string DSN we can parse out the relevant details and make a libpq connection. With indirect DSNs we can't do that (AFAIK), we'd need a way to ask ODBC / psqlODBC what the connection parameters were in a way we could pass to libpq. OTOH, the same issue seems to rule out just rewriting the driver name in the connection string. We can't do that if it's indirect via a file, user or system DSN, AFAIK. I'll need to read a bunch of documentation and do some more testing before I'm confident of any of that, though. -- 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