Re: [PATCHES] UnixWare/CVS Tip/initdb.c needs to use

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] UnixWare/CVS Tip/initdb.c needs to use
Date: 2004-03-22 18:17:54
Message-ID: 163210000.1079979474@lerlaptop.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

--On Monday, March 22, 2004 13:15:15 -0500 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
wrote:

> Larry Rosenman <ler(at)lerctr(dot)org> writes:
>> --On Monday, March 22, 2004 12:49:00 -0500 Tom Lane
>> <tgl(at)sss(dot)pgh(dot)pa(dot)us>=20 wrote:
>>> If you can fix it yourself in a reasonably non-intrusive way, we'll take
>>> the patch ... that's about the extent of the cooperation you can expect.
>
>> would a dlsym-based solution be accepted? I.E. wrap the pthread_* calls
>> in libpq, and if the real ones are present, use them, else return a
>> static=20 variable?
>
> I can't tell from that description if the idea meets the "non intrusive"
> test or not. How many places would you have to touch? How exactly are
> you going to tell "whether the real ones are present"?

I'll gen up a patch this week and present it for review.

Basically the 3 pthread_* calls that were added for thread-safe pipes
would be wrapped, and dlsym returning NULL would mean the real ones are not
present, per the note I got back from Dave Prosser of SCO, as well
as the paper Jonathan Schilling pointed me to, that I posted the URL to
on Friday before my world got rocked.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alex J. Avriette 2004-03-22 19:44:41 Re: pg_autovacuum next steps
Previous Message Tom Lane 2004-03-22 18:15:15 Re: [PATCHES] UnixWare/CVS Tip/initdb.c needs to use

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2004-03-22 18:20:28 Re: listening addresses
Previous Message Tom Lane 2004-03-22 18:15:15 Re: [PATCHES] UnixWare/CVS Tip/initdb.c needs to use