pgsql: Cleanup more code related to ws2_32.dll loading in src/port/geta - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Cleanup more code related to ws2_32.dll loading in src/port/geta
Date
Msg-id E1j4c6P-0006qJ-0c@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Cleanup more code related to ws2_32.dll loading in src/port/getaddrinfo.c

e2e0219 has removed a code path for Windows 2000 that attempts to load
wship6.dll as fallback if ws2_32.dll is found but not getaddrinfo(),
leaving behind a dangling pointer as the library is freed.  However,
there is no point in this check as ws2_32.dll exists since Windows XP,
so just remove the duplicated check.

Reported-by: Tom Lane
Discussion: https://postgr.es/m/9781.1582146114@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d55e9ae2633ee462d554dddc08d640d725dd6494

Modified Files
--------------
src/port/getaddrinfo.c | 10 ----------
1 file changed, 10 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Doc: discourage use of partial indexes for poor-man's-partitioni
Next
From: Michael Paquier
Date:
Subject: Re: pgsql: Clean up some code, comments and docs referring toWindows 2000