Re: libpy and ENABLE_THREAD_SAFETY=1 - Mailing list pgsql-general

From Pit Müller
Subject Re: libpy and ENABLE_THREAD_SAFETY=1
Date
Msg-id 43018F8B.8040401@gmx.de
Whole thread Raw
In response to Re: libpy and ENABLE_THREAD_SAFETY=1  ("Magnus Hagander" <mha@sollentuna.net>)
List 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 ?
>>
>>
>
>In theory, but I beleive there are build issues in the currently
>released version when it comes to building on win32 with
>ENABLE_THREAD_SAFETY.
>
>//Magnus
>
>
>
>
Thank you for this information.

Your wrote: "In theory"
Do you know anybody who has tested this ?
I mean a person of the PostgreSQL core team.

Pit





pgsql-general by date:

Previous
From: Lee Hyun soon
Date:
Subject: pgsql-bugs
Next
From: "Dario Basso Cardoso"
Date:
Subject: winxp with 8.0.3 postgresql