pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Wei Weng <wweng@kencast.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Is PGconn* thread safe?
Date: Thu, 27 Mar 2003 13:37:40 -0500 (EST)
Message-ID: <200303271837.h2RIbej03860@candle.pha.pa.us> (raw)
In-Reply-To: <3E833E5F.6090107@kencast.com>


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




view thread (2+ messages)

Message-ID: <200303271837.h2RIbej03860@candle.pha.pa.us>
Permalink:  ../200303271837.h2RIbej03860@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200303271837.h2RIbej03860@candle.pha.pa.us

 · 

reply

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: pgman@candle.pha.pa.us, wweng@kencast.com
  Subject: Re: Is PGconn* thread safe?
  In-Reply-To: <200303271837.h2RIbej03860@candle.pha.pa.us>

* 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