Re: Leader backend hang on IPC/ParallelFinish when LWLock held at parallel query start
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Noah Misch <noah@leadboat.com>
Cc: Francesco Degrassi <francesco.degrassi@optionfactory.net>,
pgsql-bugs@lists.postgresql.org
Date: 2024-11-08T16:46:36Z
Lists: pgsql-bugs
Attachments
- better-fix-for-noninterruptible-lockup.patch (text/x-diff) patch
Noah Misch <noah@leadboat.com> writes: > On Thu, Nov 07, 2024 at 02:29:19PM -0500, Tom Lane wrote: >> Ah, that could be a way out. Stick an INTERRUPTS_CAN_BE_PROCESSED() >> call somewhere in there? > Exactly. If !INTERRUPTS_CAN_BE_PROCESSED(), proceed as though no workers can > be launched. >> That could even allow us to revert the >> planner change, which would simplify testing of the executor change. > True. Here's a proposed patch along that line. I left the test case from ac04aa84a alone, since it works perfectly well to test this way too. We could argue about whether or not to revert the planner change. But I'd prefer to do so, because as things stand it creates a hard-to-reason-about source of plan instability. regards, tom lane
Commits
-
Improve fix for not entering parallel mode when holding interrupts.
- b8df69049256 18.0 landed
- bcbdb176e1e2 15.9 landed
- 989ccd26c838 14.14 landed
- 943b65358e88 17.1 landed
- 6e39ca6e7edb 12.21 landed
- 62685876f7b5 13.17 landed
- 06424e9a24f0 16.5 landed
-
Don't enter parallel mode when holding interrupts.
- 916b8ae475fa 13.17 landed
- 884860bfc028 15.9 landed
- 5c698e8987db 14.14 landed
- 507b72bd9f7d 12.21 landed
- 6f6521de9a96 16.5 landed
- 2370582ab14f 17.0 landed
- ac04aa84a7f0 18.0 landed
-
Add has_largeobject_privilege function.
- 4eada203a5a8 18.0 cited