Re: Win32 libpq and ecpg thread safety

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Win32 libpq and ecpg thread safety
Date: 2005-10-27 02:56:32
Message-ID: 200510270256.j9R2uWR07934@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Qingqing Zhou wrote:
>
>
>
> On Wed, 26 Oct 2005, Bruce Momjian wrote:
> >
> > If you are asking about Win32-specific threading, there is no
> > documentation about it because it works just like Unix threading. At
> > least, that is what I am told.
> >
>
> So both libpq and ecpg are thread-safe in Win32? I look into the code,
> seems at least ecpg is not, and there is some possible improvements of
> libpq (esp. PTHREAD_MUTEX_INITIALIZER).

As far as I know, both are thread safe, except you have to read the
documention limitations for both of them. If you have improvements, we
would love to see them.

--
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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Troy 2005-10-27 03:13:07 Re: Need help with INOUT mis-understanding
Previous Message Bruce Momjian 2005-10-27 02:49:20 Re: escape string type for upcoming 8.1