From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Wei Weng <wweng(at)kencast(dot)com> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Is PGconn* thread safe? |
Date: | 2003-03-27 18:37:40 |
Message-ID: | 200303271837.h2RIbej03860@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Philip Yarra | 2003-03-28 00:44:37 | ECPG thread-safety |
Previous Message | Wei Weng | 2003-03-27 18:09:35 | Is PGconn* thread safe? |