Re: pgsql: Clean up some code, comments and docs referring toWindows 2000 - Mailing list pgsql-committers

From Michael Paquier
Subject Re: pgsql: Clean up some code, comments and docs referring toWindows 2000
Date
Msg-id 20200220030240.GG2288@paquier.xyz
Whole thread Raw
In response to Re: pgsql: Clean up some code, comments and docs referring to Windows 2000  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql: Clean up some code, comments and docs referring to Windows 2000  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
On Wed, Feb 19, 2020 at 04:01:54PM -0500, Tom Lane wrote:
> Surely this patch broke the error case in haveNativeWindowsIPv6routines()?
> That is, in the admittedly unlikely case that LoadLibraryA("ws2_32")
> succeeds but GetProcAddress(hLibrary, "getaddrinfo") doesn't, what you
> now have will do FreeLibrary(hLibrary) and then proceed to use the
> now-dangling hLibrary pointer anyway.

You are right, thanks!  This block has no meaning anymore, so
removed.

For the note, it looks that we could get completely rid of
src/port/getaddrinfo.c once we drop support for XP as IPv6 support is
enabled by default on Vista and Windows 7.  For XP, one needs to
install an extra module manually.  Do you think that there are other
platforms using our port implementation for getaddrinfo() except
Windows?  That's not material for today, obviously.
--
Michael

Attachment

pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Cleanup more code related to ws2_32.dll loading in src/port/geta
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Clean up some code, comments and docs referring to Windows 2000