Re: [INTERFACES] Re: Adding a Search Link ... (fwd)

From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: pgsql-interfaces(at)postgresql(dot)org, vev(at)hub(dot)org, Alexander Barkov <bar(at)izhcom(dot)ru>
Subject: Re: [INTERFACES] Re: Adding a Search Link ... (fwd)
Date: 2000-01-06 18:41:01
Message-ID: 3874E1BD.D7440BBB@wgcr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ken J. Wright 2000-01-06 18:55:07 Re: [INTERFACES] ODBC oin Windows
Previous Message The Hermit Hacker 2000-01-06 18:09:54 Re: Adding a Search Link ... (fwd)