Re: libpq WSACleanup is not needed

Поиск
Список
Период
Сортировка
От Jeroen Vermeulen
Тема Re: libpq WSACleanup is not needed
Дата
Msg-id 4975F765.6040306@xs4all.nl
обсуждение исходный текст
Ответ на Re: libpq WSACleanup is not needed  ("Merlin Moncure" <mmoncure@gmail.com>)
Ответы Re: libpq WSACleanup is not needed  (Andrew Chernow <ac@esilo.com>)
Список pgsql-hackers
Merlin Moncure wrote:

> I think init/uninit is the answer.  While writing libpqtypes, we noted
> that libpq is just plain awkward in a few different ways and probably
> deserves a rewrite at some point.  not today though....

Would there be any serious harm in:

1. doing the WSAStartup() when the first connection is opened, but
2. cleaning up from either
2a. some kind of on-unload version of DllMain() if possible, or
2b. an explicit new cleanup function

?

(I know it says you can't set the thing up from DllMain, but does it say 
something similar about shutdown?)


Jeroen


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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: is 8.4 array_agg() supposed to work with array values?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: FWD: Re: Updated backslash consistency patch