Re: libpq-events windows gotcha

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Chernow <ac(at)esilo(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq-events windows gotcha
Date: 2008-11-12 16:21:35
Message-ID: 17131.1226506895@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Chernow <ac(at)esilo(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-11-12 16:21:43 Re: Optimizing COPY
Previous Message Alex Hunsaker 2008-11-12 16:05:26 Re: SSL cleanups/hostname verification