Re: [PATCH] Fix POSIX compliance in pgwin32_unsetenv()

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Bryan Green <dbryan.green@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2025-10-20T23:11:42Z
Lists: pgsql-hackers
On Sun, Oct 19, 2025 at 08:34:02PM -0500, Bryan Green wrote:
> I have been going through all of the windows code line by line.  That is how
> I initially noticed this.  I then wrote a program to exercise the code and
> confirm the crash. I agree it should be backported.

Applied down to v14.

Note that the unsetenv() WIN32 routine exists also in v13.  However, I
could not get excited about it with the branch going EOL soon, also
knowing that 7ca37fb0406b affects v14~.
--
Michael

Commits

  1. Fix POSIX compliance in pgwin32_unsetenv() for "name" argument