Re: VM corruption on standby
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Alexander Korotkov <aekorotkov@gmail.com>
Cc: Andrey Borodin <x4mmm@yandex-team.ru>,
Kirill Reshke <reshkekirill@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Melanie Plageman <melanieplageman@gmail.com>
Date: 2025-10-06T21:48:16Z
Lists: pgsql-hackers
On Fri, Oct 3, 2025 at 7:31 PM Alexander Korotkov <aekorotkov@gmail.com> wrote: > On Thu, Sep 11, 2025 at 1:59 AM Thomas Munro <thomas.munro@gmail.com> wrote: > > FWIW I'm working on a patch set that kills all backends without > > releasing any locks when the postmaster exists. Then CVs and other > > latch-based stuff should be safe in this context. Work was > > interrupted by a vacation but I hope to post something in the nexts > > couple of days, over on that other thread I started... > > How is it going? I have something, but I ran into a cluster of related subproblems along the way (namely: how we manage subprocesses for COPY, archiving etc, which is all a bit of a mess with known problems relating to interrupts, signals, postmaster exit and [in development] threads, which I'll write about soon with references to earlier discussions). I realised that I needed to step back a bit and tackle all aspects of our process tree and event management in a more architecturally coherent way, and already had some prototypes for bits and pieces of that puzzle from earlier attempts, but needed to make them work on Windows which had some fun subproblems. I think I've mostly figured it out now and am testing... Unfortunately a planned family vacation fell in the middle of all that, hence delay. I'm back and actively working on this now. More very soon.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Revert "Get rid of WALBufMappingLock"
- 2ce6abdf5085 18.0 landed
- c13070a27b63 19 (unreleased) landed
-
Get rid of WALBufMappingLock
- bc22dc0e0ddc 18.0 cited
-
Split WaitEventSet functions to separate source file
- 393e0d231405 18.0 cited
-
Add WL_EXIT_ON_PM_DEATH pseudo-event.
- cfdf4dc4fc96 12.0 cited