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

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Michael Paquier <michael(at)paquier(dot)xyz>
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 16:52:34
Message-ID: CAGECzQQ2a-J1Dw1ciskF9MVt5uFyq1bRaKQMntDq5h0KO1NBtg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 4 Dec 2026 at 03:59, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> > 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.

To be clear, I also care very little about our support for Windows.
The only reason I care about this one is that it makes the tests I
write for FATAL messages produce different output on windows in the
tests I write for my other patchset[1]. And after that's merged, I
want to improve pg_regress its handling of server crashes and libpq
its retry capabilities. It would be nice if those things also worked
in our Windows CI (i.e. the only windows I really care about).

About 5 I care essentially nothing, that was more a "Show how terrible
Windows is" commit.

[1] https://www.postgresql.org/message-id/flat/DJ60NPKYB9L9.3I3SS9I2MBL00%40jeltef.nl#3ffda50a235a05d2f3af73dbc18be18b

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sami Imseih 2026-12-04 16:54:41 Re: pgstat: Flush some statistics within running transactions, take 2
Previous Message Baji Shaik 2026-12-04 16:51:13 Re: pg_dump writes a subscription's default slot name, which can't be restored