aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeMergejoin.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-11-03 16:16:36 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-11-03 16:16:36 -0500
commit55416b26a98fcf354af88cdd27fc2e045453b68a (patch)
tree5193d4c50ef6caa4a472cc274238f049c53e1b81 /src/backend/executor/nodeMergejoin.c
parent136f87ea57b3a7a6bf64c832a5e1b69e18091775 (diff)
downloadpostgresql-55416b26a98fcf354af88cdd27fc2e045453b68a.tar.gz
postgresql-55416b26a98fcf354af88cdd27fc2e045453b68a.zip
Guard against core dump from uninitialized subplan.
If the planner erroneously puts a non-parallel-safe SubPlan into a parallelized portion of the query tree, nodeSubplan.c will fail in the worker processes because it finds a null in es_subplanstates, which it's unable to cope with. It seems worth a test-and-elog to make that an error case rather than a core dump case. This probably should have been included in commit 16ebab688, which was responsible for allowing nulls to appear in es_subplanstates to begin with. So, back-patch to v10 where that came in. Discussion: https://postgr.es/m/924226.1604422326@sss.pgh.pa.us
Diffstat (limited to 'src/backend/executor/nodeMergejoin.c')
0 files changed, 0 insertions, 0 deletions