Re: libpq_r - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: libpq_r
Date
Msg-id 200307241252.h6OCqbJ14215@candle.pha.pa.us
Whole thread Raw
In response to libpq_r  (Lee Kindness <lkindness@csl.co.uk>)
Responses Re: libpq_r  (Lee Kindness <lkindness@csl.co.uk>)
Re: libpq_r  (Larry Rosenman <ler@lerctr.org>)
List pgsql-hackers
Lee Kindness wrote:
> Guys, take a look at what was done in libpq to make it
> thread-safe... No locks! No overheaded - just using "proper" reentrant
> functions...
> 
> If we have libpq_r then we're making a complete hash of it all - being
> reentrant is good, even if you're not using threads!
> 
> Now, ecpg is another issue...
> 

I think the issue is that using a threaded library to link into libpq
could have locking stuff.

My guess is that if the OS has separate threaded libs, we have to mimic
that stuff.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: suggestions to improve postgresql suitability for
Next
From: Bruce Momjian
Date:
Subject: Re: