| 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-16 07:02:35 |
| Message-ID: | 43018F8B.8040401@gmx.de |
| Views: | Whole Thread | Raw Message | 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 ?
>>
>>
>
>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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tino Wildenhain | 2005-08-16 07:22:34 | Re: Testing of MVCC |
| Previous Message | Jim C. Nasby | 2005-08-16 06:20:29 | Re: 5 new entries for FAQ |