Re: Is PGconn* thread safe? - Mailing list pgsql-interfaces

From Bruce Momjian
Subject Re: Is PGconn* thread safe?
Date
Msg-id 200303271837.h2RIbej03860@candle.pha.pa.us
Whole thread Raw
In response to Is PGconn* thread safe?  (Wei Weng <wweng@kencast.com>)
List pgsql-interfaces
They are not thread-safe but each connection can have its own PGconn.

---------------------------------------------------------------------------

Wei Weng wrote:
> Can I use two threads to use one PGconn* or do I have to assign them 
> each one with a unique PGconn*?
> 
> I searched in the mailing list archive, but couldn't find anything 
> recent that has mentioned the thread safeness of libpq/PGconn*.
> 
> Thanks a lot!
> 
> Wei
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
> 

--  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-interfaces by date:

Previous
From: Wei Weng
Date:
Subject: Is PGconn* thread safe?
Next
From: Philip Yarra
Date:
Subject: ECPG thread-safety