Re: libpq WSACleanup is not needed - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: libpq WSACleanup is not needed
Date
Msg-id 4970A4FE.709@hagander.net
Whole thread Raw
In response to Re: libpq WSACleanup is not needed  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq WSACleanup is not needed
Next
From: Gregory Stark
Date:
Subject: Re: FWD: Re: Updated backslash consistency patch