Re: Interrupts vs signals
Heikki Linnakangas <hlinnaka@iki.fi>
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Andres Freund <andres@anarazel.de>, Thomas Munro <thomas.munro@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, Robert Haas
<robertmhaas@gmail.com>, Fujii Masao <masao.fujii@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-03-06T16:43:47Z
Lists: pgsql-hackers
Attachments
- v7-0001-Replace-Latches-with-Interrupts.patch (text/x-patch) patch v7-0001
- v7-0002-Fix-lost-wakeup-issue-in-logical-replication-laun.patch (text/x-patch) patch v7-0002
- v7-0003-Use-INTERRUPT_GENERAL-for-bgworker-state-change-n.patch (text/x-patch) patch v7-0003
- v7-0004-Replace-ProcSignals-and-other-ad-hoc-signals-with.patch (text/x-patch) patch v7-0004
On 06/03/2025 02:47, Heikki Linnakangas wrote: > Here's a new patch set. It includes the previous work, and also goes the > whole hog and replaces procsignals and many other signalling with > interrupts. It's based on Thomas's v3-0002-Redesign-interrupts-remove- > ProcSignals.patch much earlier in this thread. And here's yet another version. It's the same at high level, but with a ton of little fixes. One notable change is that I merged storage/interrupt.[ch] with postmaster/interrupt.[ch], so the awkwardness of having two files with same name is gone. -- Heikki Linnakangas Neon (https://neon.tech)
Commits
-
Ignore SIGINT in walwriter and walsummarizer
- a92b809f9da1 19 (unreleased) landed
-
Split WaitEventSet functions to separate source file
- 393e0d231405 18.0 landed
-
Use ModifyWaitEvent to update exit_on_postmaster_death
- 84e5b2f07a5e 18.0 landed
-
Remove unused ShutdownLatchSupport() function
- a98e4dee63ce 18.0 landed
-
Rename two functions that wake up other processes
- 368d8270c838 18.0 landed
-
Use ProcNumbers instead of direct Latch pointers to address other procs
- a9c546a5a378 18.0 landed
-
Clean up WaitLatch calls that passed latch without WL_LATCH_SET
- f9ecb57a506a 18.0 landed
-
Remove unneeded #include
- 094ae071605d 18.0 landed
-
Remove unused latch
- 6c0c49f7d37d 18.0 landed
-
Remove support for background workers without BGWORKER_SHMEM_ACCESS.
- 80a8f95b3bca 15.0 cited