Re: libpq_r - Mailing list pgsql-hackers

From Lee Kindness
Subject Re: libpq_r
Date
Msg-id 16159.62279.257180.841297@kelvin.csl.co.uk
Whole thread Raw
In response to Re: libpq_r  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian writes:> However, notice the flags needed under Linux:> >     THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE
-D_POSIX_PTHREAD_SEMANTICS">> or are you saying libpq needs only the first one because libpq, itself,> doesn't use
threads--- interesting distinction, and perhaps a way we> can get by with one libpq even on platforms that require *_r>
libraries.

Urgh, I think I was a bit over zealous witht he first patch and just
bundled the later two in... After looking around the includes they
don't do anything under Linux. I think they're used on AIX.

however the best way to do this is to look at another package which
has a wide distribution and wide OS base - OpenLDAP being a good
example (or even MySQL!)- and see how they do things... No need to
reinvent the wheel!

L.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq_r
Next
From: Bruce Momjian
Date:
Subject: Re: libpq_r