Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WwpMZ-0004VG-Sa for pgsql-odbc@arkaria.postgresql.org; Tue, 17 Jun 2014 09:07:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WwpMZ-0003vr-6c for pgsql-odbc@arkaria.postgresql.org; Tue, 17 Jun 2014 09:07:31 +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 1WwpMY-0003vi-8D for pgsql-odbc@postgresql.org; Tue, 17 Jun 2014 09:07:30 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WwpMT-0004M0-Kt for pgsql-odbc@postgresql.org; Tue, 17 Jun 2014 09:07:28 +0000 Received: (qmail 2460 invoked by uid 512); 17 Jun 2014 09:07:22 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 17 Jun 2014 09:07:22 -0000 Message-ID: <53A0054A.5050508@tpf.co.jp> Date: Tue, 17 Jun 2014 18:07:22 +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: Heikki Linnakangas Subject: Re: Why separate pgenlist DLL? References: <539F2D15.9020604@vmware.com> In-Reply-To: <539F2D15.9020604@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.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/17 2:44), Heikki Linnakangas wrote: > Hi, > > On Windows, when the driver is built with MSDTC support, we build some > of the MSDTC functions in separate DLLs: pgenlist.dll and pgxalib.dll. > Why do we do that? Why not just link everything in the main DLL? pgxalib.dll should be a separate DLL because it is essentially irrevant to the drivers. It is called from MSDTC process when resolutions of in-doubt transactions are needed. As Craig Ringer reported, the 64bit pgxalib.dll is used on 64bit OS even when transactions are PREPAREd via 32bit ODBC applications. Though pgxalib.dll calls ODBC APIs currently, it's not calling driver's APIs directly and can call e.g. libpq APIs instead. As for pgenlist(a).dll, though I've never thought to unify it with main DLL, there may be a room for discussion. There were some reasons. 1. Basically for Windows only. 2. Many users don't use this functionality at all. 3. COM-style C++ programming and most part of the code is handling asynchronous requests for COM-like objects out of ODBC APIs. I have been much more nervous in programming pgenlist than psqlodbc and have felt isolating the code is preferable. regards, Hiroshi Inoue -- I am using the free version of SPAMfighter. SPAMfighter has removed 10925 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