Re: Thread configure flag

From: "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Thread configure flag
Date: 2003-06-18 06:27:20
Message-ID: 3EF053A0.31849.51EC9D4@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-06-18 13:34:46 Re: Thread configure flag
Previous Message Bruno Wolff III 2003-06-18 04:07:17 Re: ss_family in hba.c