Re: Reapply graceful socket shutdown on Windows (revert 29992a6a509)

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
Cc: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Nikolay Samokhvalov <nik(at)postgres(dot)ai>, Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>, Gregory Burd <greg(at)burd(dot)me>
Subject: Re: Reapply graceful socket shutdown on Windows (revert 29992a6a509)
Date: 2026-12-04 02:59:05
Message-ID: axIsedgftDSTFAb_@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Dec 02, 2026 at 02:08:58AM +0100, Jelte Fennema-Nio wrote:
> On Tue, 1 Dec 2026 at 08:26, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>> Err, 0005, that controls with a GUC for how long a backend should stay
>> around to flush its information, feels like an unstable knob to me.
>> Let's assume that we do 0004, why would there be any need for 0005,
>> then?
>
> 0001 fixes the case where a client is waiting for a response and then
> gets a FATAL

FWIW, I'm OK with doing something about that on HEAD, so let's merge
0001 and 0003 together, the re-enable the test. If this proves
successful across a beta cycle, we could always revisit a backpatch.
Jacob? If you tell me to stop in my tracks, that's fine of course,
but the 0001-0003 series do not make things weaker AFAIK, just.. Err..
Better. :)

> 0004 fixes the case where a client was idle and then wants to send
> something but in the meantime got a FATAL

Even that seems wrong done client-side. Perhaps somebody with more
knowledge of WIN32 will be able to comment. I cannot get enthusiastic
in the idea of sending more time for the sake of this platform and its
weird historical mostly-non-POSIX behaviors.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2026-12-04 02:59:48 Re: pgstat: Flush some statistics within running transactions, take 2
Previous Message Michael Paquier 2026-12-04 02:52:11 Re: Standby writes pages past minRecoveryPoint after crash recovery