Re: Thread configure flag - Mailing list pgsql-patches

From Shridhar Daithankar
Subject Re: Thread configure flag
Date
Msg-id 3EF053A0.31849.51EC9D4@localhost
Whole thread Raw
In response to Re: Thread configure flag  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Thread configure flag
List pgsql-patches
On 17 Jun 2003 at 14:14, Tom Lane wrote:
> > Then maybe we should make a libpq and a libpq_r, etc.
>
> That would be fine with me ... although it's only worth doing if the
> platform has a libc and a libc_r.  Shall we use the existence of libc_r
> to drive this choice?

I agree with this. If libpq is linked against libc_r for threading and mutex
functions etc. and postgresql is linked against libc, then things like dblink
which uses both postgresql and libc run into problem of symbol conflict. I
experienced this on freeBSD and work around was to switch to linuxthreads which
is not really good.

If there are two versions of libraries available, we should do both. But that
adds to bloat for certain.

Just a thought.

Bye
 Shridhar

--
Lie, n.:    A very poor substitute for the truth, but the only one    discovered to
date.


pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] CVS -Tip compile issue -- FreeBSD 4.8
Next
From: Bruce Momjian
Date:
Subject: Re: Thread configure flag