> > The problem with this is that PQrequestCancel() is not thread-safe.
> What is your basis for asserting that?
Looking at the source code?
We are talking about two different threads *accessing the same PGconn*.
if (conn->sock < 0)
"PQrequestCancel() -- connection is not
errno = save_errno;
What if another thread is modifying or reading the errorMessage variable
at the same time? Or what if another thread just PQfinished() the entire
conenction, which causes a free() call? None of this stuff is
It may be re-entrant-safe, but I don't beleive it's thread safe. libpq
in general is only thread safe as long as a single connection is only
used on a single thread.
pgsql-hackers-win32 by date
|Next:||From: Andrew Dunstan||Date: 2004-10-26 15:34:46|
|Subject: Re: pg_ctl strangeness under msys|
|Previous:||From: Tom Lane||Date: 2004-10-26 14:41:09|
|Subject: Re: Win32 open items |