Don't enter parallel mode when holding interrupts.
authorNoah Misch <noah@leadboat.com>
Wed, 18 Sep 2024 02:53:11 +0000 (19:53 -0700)
committerNoah Misch <noah@leadboat.com>
Wed, 18 Sep 2024 02:54:26 +0000 (19:54 -0700)
commit507b72bd9f7de95a224ae5af8797f42bfce1ed9c
tree949db3287d2bc0cda064b7763b3d013d3215339e
parent011659d498357f4c0f243816140b09085422d309
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: http://postgr.es/m/CAC-SaSzHUKT=vZJ8MPxYdC_URPfax+yoA1hKTcF4ROz_Q6z0_Q@mail.gmail.com
src/backend/optimizer/plan/planner.c
src/test/regress/expected/select_parallel.out
src/test/regress/sql/select_parallel.sql