Re: libpq_r

Поиск
Список
Период
Сортировка
От Lee Kindness
Тема Re: libpq_r
Дата
Msg-id 16159.62279.257180.841297@kelvin.csl.co.uk
обсуждение исходный текст
Ответ на Re: libpq_r  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: libpq_r
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: libpq_r