aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeProjectSet.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-09-03 16:52:09 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-09-03 16:52:09 -0400
commit17424e79d9794b00bdb6653185fc27ba423d8d81 (patch)
tree72e79ca45bb1fb10c6f3b317d1b9e31aea0574b9 /src/backend/executor/nodeProjectSet.c
parent214bc9038e39e209924514b77db4ee491f95509a (diff)
downloadpostgresql-17424e79d9794b00bdb6653185fc27ba423d8d81.tar.gz
postgresql-17424e79d9794b00bdb6653185fc27ba423d8d81.zip
Avoid lockup of a parallel worker when reporting a long error message.
Because sigsetjmp() will restore the initial state with signals blocked, the code path in bgworker.c for reporting an error and exiting would execute that way. Usually this is fairly harmless; but if a parallel worker had an error message exceeding the shared-memory communication buffer size (16K) it would lock up, because it would wait for a resume-sending signal from its parallel leader which it would never detect. To fix, just unblock signals at the appropriate point. This can be shown to fail back to 9.6. The lack of parallel query infrastructure makes it difficult to provide a simple test case for 9.5; but I'm pretty sure the issue exists in some form there as well, so apply the code change there too. Vignesh C, reviewed by Bharath Rupireddy, Robert Haas, and myself Discussion: https://postgr.es/m/CALDaNm1d1hHPZUg3xU4XjtWBOLCrA+-2cJcLpw-cePZ=GgDVfA@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions