From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Subject: Re: Why separate pgenlist DLL?
Date: Tue, 17 Jun 2014 18:07:22 +0900
Message-ID: <53A0054A.5050508@tpf.co.jp> (raw)
In-Reply-To: <539F2D15.9020604@vmware.com>
References: <539F2D15.9020604@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
(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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, hlinnakangas@vmware.com
Subject: Re: Why separate pgenlist DLL?
In-Reply-To: <53A0054A.5050508@tpf.co.jp>
References: <539F2D15.9020604@vmware.com> <53A0054A.5050508@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox