From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: libpq_r |
Date: | 2003-07-24 20:35:02 |
Message-ID: | 333840000.1059078902@lerlaptop-red.iadfw.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
--On Thursday, July 24, 2003 16:30:14 -0400 Bruce Momjian
<pgman(at)candle(dot)pha(dot)pa(dot)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(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2003-07-24 20:47:59 | Re: odd behavior/possible bug |
Previous Message | Bruce Momjian | 2003-07-24 20:30:14 | Re: libpq_r |