Re: libpq_r - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: libpq_r
Date
Msg-id Pine.LNX.4.56.0307241600500.3595@krusty.credativ.de
Whole thread Raw
In response to libpq_r  (Lee Kindness <lkindness@csl.co.uk>)
List pgsql-hackers
Lee Kindness writes:

> Guys, take a look at what was done in libpq to make it
> thread-safe... No locks! No overheaded - just using "proper" reentrant
> functions...

There is a difference between being reentrant and being thread-safe.
Making libpq reentrant is relatively easy if you use the right functions.
But we have no guarantee that it will be thread-safe by default, because
some platforms require special flags to make standard library functions
thread-safe.

-- 
Peter Eisentraut   peter_e@gmx.net


pgsql-hackers by date:

Previous
From: "Shridhar Daithankar"
Date:
Subject: Re:
Next
From: Tom Lane
Date:
Subject: Re: libpq_r