Re: threads stuff/UnixWare - Mailing list pgsql-hackers

From Larry Rosenman
Subject Re: threads stuff/UnixWare
Date
Msg-id 5DFA80277C2CEF9828CF85E4@lerlaptop.lerctr.org
Whole thread Raw
In response to Re: threads stuff/UnixWare  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers

--On Wednesday, May 12, 2004 22:26:03 -0400 Bruce Momjian
<pgman@candle.pha.pa.us> wrote:

> Larry Rosenman wrote:
>> Yes, there would still be the overhead, because the functions that
>> libthread wraps would go through that overhead since libthread does it's
>> magic at _ini time.
>>
>> Y'all were concerned with overhead in previous discussions.
>>
>> If you want to link the backend with -Kpthread, you can, but basically
>> the client code (initdb, et al) should be -Kpthread, and the backend
>> should NOT since there are no threads calls in the backend.
>>
>> >
>> > I am afraid of libpgport.  Those object files get used by the backend,
>> > and by the client stuff.  Larry can -K and non-K object files be mixed
>> > in the same binary?
>> Yes, they can.
>>
>> But, you MUST link ANY pthread_* using code with -K pthread.
>
> OK, can someone come up with a cute way to add flags only to things that
> use libpq, meaning /interfaces and /bin?
What about where -lpq is specified?

(I'm NOT a GNU Make guru).

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: Tom Lane
Date:
Subject: Rough draft for Unicode-aware UPPER()/LOWER()/INITCAP()
Next
From: Alvaro Herrera
Date:
Subject: relcache refcount