Re: libpq WSACleanup is not needed

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: libpq WSACleanup is not needed
Дата
Msg-id 4970A4FE.709@hagander.net
обсуждение исходный текст
Ответ на Re: libpq WSACleanup is not needed  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
>> Magnus Hagander wrote:
>>> If you want to override this behavior today, you can just call
>>> WSAStartup() in your application, and it should never happen. Right?
> 
>> Or perhaps use _init() and _fini() or the Win32 equivalents?
> 
> I thought we were already relying on DLL load/unload-time calls
> in the Win32 port?  Or maybe that was a long time ago and we got
> rid of it?  I agree with Andrew that that would be a saner place
> for this than connection start.

We had it, and we removed it because the Win32 API docs say you're not
allowed to do it that way because of deadlock risks.

//Magnus



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: libpq WSACleanup is not needed
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: FWD: Re: Updated backslash consistency patch