pgsql: Don't enter parallel mode when holding interrupts.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Don't enter parallel mode when holding interrupts.
Date: 2024-09-18 02:58:48
Message-ID: E1sqku0-001aT5-5I@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Don't enter parallel mode when holding interrupts.

Doing so caused the leader to hang in wait_event=ParallelFinish, which
required an immediate shutdown to resolve. Back-patch to v12 (all
supported versions).

Francesco Degrassi

Discussion: https://postgr.es/m/CAC-SaSzHUKT=vZJ8MPxYdC_URPfax+yoA1hKTcF4ROz_Q6z0_Q@mail.gmail.com

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6f6521de9a961e9365bc84e95a04a7afaafb2f95

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 6 ++++++
src/test/regress/expected/select_parallel.out | 24 +++++++++++++++++++++
src/test/regress/sql/select_parallel.sql | 31 +++++++++++++++++++++++++++
3 files changed, 61 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-09-18 03:48:20 pgsql: Extend PgStat_HashKey.objid from 4 to 8 bytes
Previous Message Michael Paquier 2024-09-18 01:00:13 pgsql: Add missing query ID reporting in extended query protocol