aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/functions.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-03-31 21:15:05 -0400
committerRobert Haas <rhaas@postgresql.org>2017-03-31 21:15:05 -0400
commit25dc142a49c60c3107480c487cd8444dc83f9bdf (patch)
tree2b6297882639eb9f0e66eb229b3213ae1125d52c /src/backend/executor/functions.c
parent7d8f6986b83c9a56f6ea11c959cdd8f52e1b543d (diff)
downloadpostgresql-25dc142a49c60c3107480c487cd8444dc83f9bdf.tar.gz
postgresql-25dc142a49c60c3107480c487cd8444dc83f9bdf.zip
Avoid GatherMerge crash when there are no workers.
It's unnecessary to return an actual slot when we have no tuple. We can just return NULL, which avoids the risk of indexing into an array that might not contain any elements. Rushabh Lathia, per a report from Tomas Vondra Discussion: http://postgr.es/m/6ecd6f17-0dcf-1de7-ded8-0de7db1ddc88@2ndquadrant.com
Diffstat (limited to 'src/backend/executor/functions.c')
0 files changed, 0 insertions, 0 deletions