[HACKERS] How to issure PQexec is thread safety if use a connceion in two threads?

2009-05-20 Thread Fly.Li
Hi, all Reading libpq code( PQexec() ), I cann't find measure for thread safety. Read libpq doc, there are some words: - One thread restriction is that no two threads attempt to manipulate the same PGconn object at the same time. In particular, you cannot issue concurrent

Re: [HACKERS] How to issure PQexec is thread safety if use a connceion in two threads?

2009-05-20 Thread Robert Haas
On Thu, May 21, 2009 at 12:04 AM, Fly.Li fly...@126.com wrote: Reading libpq code( PQexec() ), I cann't find measure for thread safety. Read libpq doc, there are some words: - One thread restriction is that no two threads attempt to manipulate the same PGconn object at