Re: libpy and ENABLE_THREAD_SAFETY=1

From: Pit Müller <fmi-soft(at)gmx(dot)de>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: libpy and ENABLE_THREAD_SAFETY=1
Date: 2005-08-15 14:24:44
Message-ID: 4300A5AC.4060601@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Magnus Hagander wrote:

>>Is the standard libpq.dll distributed by PostgreSQL8.0 for
>>windows thread safe by default ?
>>
>>
>
>No.
>It is safe as long as you use each PGconn on a separate thread but you
>cannot share the same PGconn between threads.
>
>//Magnus
>
>
>
>
But what if I compile the DLL using ENABLE_THREAD_SAFETY ?
Can I then use one connection for multiple threads ?

Pit

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Aly Dharshi 2005-08-15 14:53:41 Postgresql Books: Which one ?
Previous Message Sebastian Freundt 2005-08-15 13:51:11 Re: hash-join forgets tuples