Re: libpy and ENABLE_THREAD_SAFETY=1

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: libpy and ENABLE_THREAD_SAFETY=1
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C78A7@algol.sollentuna.se
обсуждение исходный текст
Ответ на libpy and ENABLE_THREAD_SAFETY=1  ("Pit M." <fmi-soft@gmx.de>)
Ответы Re: libpy and ENABLE_THREAD_SAFETY=1  (Pit Müller <fmi-soft@gmx.de>)
Список pgsql-general
> >>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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Authenticating using Windows XP login
Следующее
От: Tony Caduto
Дата:
Сообщение: Question about the NAME type used in pg_proc and pg_class