Revert "graceful shutdown" changes for Windows.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Mar 2022 14:19:15 +0000 (10:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Mar 2022 14:19:15 +0000 (10:19 -0400)
commit29992a6a509b256efc4ac560a1586b51a64b2637
tree4d8d9632a0e711015c6b58cf3fbe2cf87c030671
parent7faa5fc84bf46ea6c543993cffb8be64dff60d25
Revert "graceful shutdown" changes for Windows.

This reverts commits 6051857fc and ed52c3707 in HEAD (they were already
reverted in the back branches).  Further testing has shown that while
those changes do fix some things, they also break others; in particular,
it looks like walreceivers fail to detect walsender-initiated connection
close reliably if the walsender shuts down this way.  A proper fix for
this seems possible but won't be done in time for v15.

Discussion: https://postgr.es/m/CA+hUKG+OeoETZQ=Qw5Ub5h3tmwQhBmDA=nuNO3KG=zWfUypFAw@mail.gmail.com
Discussion: https://postgr.es/m/CA+hUKGKkp2XkvSe9nG+bsgkXVKCdTeGSa_TR0Qx1jafc_oqCVA@mail.gmail.com
src/backend/libpq/pqcomm.c