Re: libpq_r - Mailing list pgsql-hackers

From Larry Rosenman
Subject Re: libpq_r
Date
Msg-id 333840000.1059078902@lerlaptop-red.iadfw.net
Whole thread Raw
In response to Re: libpq_r  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers

--On Thursday, July 24, 2003 16:30:14 -0400 Bruce Momjian 
<pgman@candle.pha.pa.us> wrote:

> Peter Eisentraut wrote:
>> Larry Rosenman writes:
>>
>> > I beg to differ.  Explicitly, on UnixWare, the <errno.h> header,
>> > reproduced below, under fair use, show an EXPLICIT difference in what
>> > happens with _REENTRANT:
>>
>> Hmm, I was too optimistic.  I guess we'll just have to handcraft a
>> different solution for each platform.  But clearly on some platforms
>> we'll need a libpq_r, so for the reasons I outlined in my initial post,
>> it'd be good to provide one on all platforms.
>
> I still think it is confusing to create a libpq_r on platforms that have
> no _r libraries.  I am on BSD/OS and I can find only _r library on my
> entire system, and guess who make that one:
>
>     /usr/contrib/lib/mysql/libmysqlclient_r.a
>
> and they actually have two different libraries:
>
> -rwxr-xr-x  1 root  wheel  127413 Jun  5  2001
> /usr/contrib/lib/mysql/libmysqlclient.so.10.0.0* -rwxr-xr-x  1 root
> wheel  144471 Jun  5  2001
> /usr/contrib/lib/mysql/libmysqlclient_r.so.10.0.0*
I think it needs to be a port/platform by port/platform decision.

I DO think we need to -D_REENTRANT on those platforms that we can to allow
libpq's use in threaded programs.

LER




-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: libpq_r
Next
From: Joe Conway
Date:
Subject: Re: odd behavior/possible bug