Re: libpq naming on Win64 - Mailing list pgsql-hackers

From Dave Page
Subject Re: libpq naming on Win64
Date
Msg-id 937d27e11001050848m4eed9e0ft6e6725f665219b0e@mail.gmail.com
Whole thread Raw
In response to Re: libpq naming on Win64  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: libpq naming on Win64  (Peter Eisentraut <peter_e@gmx.net>)
Re: libpq naming on Win64  (Hiroshi Inoue <inoue@tpf.co.jp>)
List pgsql-hackers
On Tue, Jan 5, 2010 at 3:15 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Dave Page <dpage@pgadmin.org> writes:
>> After chatting with Magnus, we feel that a good solution would be to
>> rename libpq on Win64 to libpq64.dll to distinguish it from the 32 bit
>> equivalent.
>
> Isn't that going to break applications?  Where by "break" I mean
> "have to explicitly link with 'libpq64', thereby rendering them
> unportable to any other platform".

I'm really not concerned about that - a build rule to link with the
right library based on pointer size is trivial.

> I would have thought Microsoft would have a better solution than this
> for managing 64-bit libraries.  Or am I too optimistic about Redmond's
> competence?

They have two separate installation directories for 32 and 64 bit
packages. With PostgreSQL though, we'll quite possibly be shipping
both 32 and 64 bit components in the same installer, and thus going
into the same installation directory. We may have no choice about
that, as we can't force all the dependent libraries to add 64 bit
support when we need it.

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: ECPG SQLDA support
Next
From: Greg Stark
Date:
Subject: Re: Writeable CTEs