Re: libpq's pollution of application namespace

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: William ZHANG <uniware(at)zedware(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: libpq's pollution of application namespace
Date: 2005-10-20 10:59:49
Message-ID: 20051020105949.GD30631@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Oct 20, 2005 at 06:20:37PM +0800, William ZHANG wrote:
> I think it is a good idea to make the exported symbols clearer.
> We should only export the symbols needed. The
> output of "dlltool --export-all" is too big.
> AFAIK, we can generate *.def for Win32/MSVC++
> from a text file like this.
> PQclear
> PQfn
> FooGlobalData DATA

AIUI, we *do* limit the symbols for Windows (for libpq anyway, see
exports.txt file) we just don't for UNIX since it can't be done
portably. I posted a patch to -patches which does it for Linux and in
principle any platform using GCC but there's no consensus on whether we
should do it if it can't be done for everyone in a simple way.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Douglas McNaught 2005-10-20 12:04:19 Re: Key violation. ERROR: type "lo" does not exist.
Previous Message William ZHANG 2005-10-20 10:20:37 Re: libpq's pollution of application namespace