pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Is PGconn* thread safe?
2+ messages / 2 participants
[nested] [flat]

* Is PGconn* thread safe?
@ 2003-03-27 18:09 Wei Weng <wweng@kencast.com>
  2003-03-27 18:37 ` Re: Is PGconn* thread safe? Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Wei Weng @ 2003-03-27 18:09 UTC (permalink / raw)
  To: pgsql-interfaces

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Is PGconn* thread safe?
  2003-03-27 18:09 Is PGconn* thread safe? Wei Weng <wweng@kencast.com>
@ 2003-03-27 18:37 ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2003-03-27 18:37 UTC (permalink / raw)
  To: Wei Weng <wweng@kencast.com>; +Cc: 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, Pennsylvania 19073




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-03-27 18:37 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-03-27 18:09 Is PGconn* thread safe? Wei Weng <wweng@kencast.com>
2003-03-27 18:37 ` Bruce Momjian <pgman@candle.pha.pa.us>

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