Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WvCHn-0005dZ-Vm for pgsql-odbc@arkaria.postgresql.org; Thu, 12 Jun 2014 21:11:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WvCHn-0004oY-Er for pgsql-odbc@arkaria.postgresql.org; Thu, 12 Jun 2014 21:11:51 +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 1WvCHm-0004mC-A0 for pgsql-odbc@postgresql.org; Thu, 12 Jun 2014 21:11:50 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WvCHi-00087T-EX for pgsql-odbc@postgresql.org; Thu, 12 Jun 2014 21:11:48 +0000 Received: (qmail 30207 invoked by uid 512); 12 Jun 2014 21:11:43 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 12 Jun 2014 21:11:43 -0000 Received: from unknown (HELO ?192.168.1.8?) (183.76.63.174) by sd.tpf.co.jp with SMTP; 12 Jun 2014 21:11:43 -0000 Message-ID: <539A17BE.5090001@tpf.co.jp> Date: Fri, 13 Jun 2014 06:12:30 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Craig Ringer CC: "pgsql-odbc@postgresql.org" Subject: Re: XA registry entries are missing from 64-bit install References: <5399240A.8030109@2ndquadrant.com> <53994289.2020801@tpf.co.jp> <539964A3.8090707@2ndquadrant.com> In-Reply-To: <539964A3.8090707@2ndquadrant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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/12 17:28), Craig Ringer wrote: > On 06/12/2014 02:02 PM, Inoue, Hiroshi wrote: >> >> >> Because msdtc process seems a 64bit application, 64bit pgxalib.dll >> should be registered even when 32bit applications use MSDTC support. >> The current way of registration isn't appropriate and 64bit installer >> would have to register the entry beforehand. > > OK, so if I understand this right, it might be helpful to have > pgenlist.dll expose a function that's callable with rundll32 to create > the registry entries. Call it, say, registerxa(). It should be done for pgxalib.dll not pgenlist(a).dll if we do such kind of registration. > Then the registry entry creation code currently in > EnlistInDtc_1pipe(...) could be factored out so it's callable as part of > EnlistInDtc_1pipe(...) or via the new entry point. > > The installer can then invoke > > rundll32 pgenlist.dll,registerxa > > to create the appropriate entries. > > Reasonable? > > Or is it better to just create/update the registry entries directly > using the MSI? Yes it seems better. > Looking at the current code, it appears that it tries to overwrite any > existing value in that subkey if XA enlistment fails. So it should also > "upgrade" existing entries. Right? Yes but the implementation of pgxalib.dll has not been changed for a long time. There's little dependency between pgxalib.dll and drivers regards, Hiroshi INoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc