Re: libpq-events windows gotcha - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq-events windows gotcha
Date
Msg-id 17131.1226506895@sss.pgh.pa.us
Whole thread Raw
In response to libpq-events windows gotcha  (Andrew Chernow <ac@esilo.com>)
Responses Re: libpq-events windows gotcha
List pgsql-hackers
Andrew Chernow <ac@esilo.com> writes:
> Just noticed that the last libpqtypes release was broken on windows when 
> dynamically linking.  The problem is that windows has two addresses for 
> functions, the import library uses a stub "ordinal" address while the 
> DLL itself is using the real address; yet another m$ annoyance.  This 
> breaks the PQEventProc being used as a unique lookup value.
> This is a big gotcha for any libpq-events implementors.  It should 
> probably be documented in some fashion.

Hmm.  Well, it's not too late to reconsider the use of the function
address as a lookup key ... but what else would we use instead?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Alex Hunsaker"
Date:
Subject: Re: SSL cleanups/hostname verification
Next
From: Heikki Linnakangas
Date:
Subject: Re: Optimizing COPY