From: Lamar Owen <lamar.owen@wgcr.org>
To: The Hermit Hacker <scrappy@hub.org>
Cc: pgsql-interfaces@postgresql.org, vev@hub.org, Alexander Barkov <bar@izhcom.ru>
Subject: Re: [INTERFACES] Re: Adding a Search Link ... (fwd)
Date: Thu, 06 Jan 2000 13:41:01 -0500
Message-ID: <3874E1BD.D7440BBB@wgcr.org> (raw)
References: <Pine.BSF.4.21.0001061408400.18498-100000@thelab.hub.org>
The Hermit Hacker wrote:
>
> Erk...I know *someone* was working on this...did we ever get anywhere on a
> thread-safe libpq?
Well, I don't think it has been fully documented, but the current libpq,
as long as you don't use one connect method, and use another --
apparently PQsetdbLogin IS threadsafe, as the AOLserver driver uses that
successfully. I THINK (I would search the archives, but.... Don Baccus
posted a question about just that at one point, and it was answered)
PQconnectdb is not, but don't quote me on that.
The short of it is that AOLserver, a multithreaded webserver,
successfully uses PQsetdbLogin -- which is apparently thread-safe.
Once the connection is established, libpq is apparently thread-safe. (at
least it is operating under a multithreaded webserver....)
--
Lamar Owen
WGCR Internet radio
1 Peter 4:11
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: lamar.owen@wgcr.org, scrappy@hub.org, bar@izhcom.ru
Subject: Re: [INTERFACES] Re: Adding a Search Link ... (fwd)
In-Reply-To: <3874E1BD.D7440BBB@wgcr.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox