]> granicus.if.org Git - postgresql/commit
Fix assertion failure when Parallel Append is run serially.
authorRobert Haas <rhaas@postgresql.org>
Wed, 28 Feb 2018 15:56:06 +0000 (10:56 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 28 Feb 2018 15:58:27 +0000 (10:58 -0500)
commitce1663cdcdbd9bf15c81570277f70571b3727dd3
tree5dab19d776f5c78c882c7bed9ec9a8e571f0a58c
parent4fa396464e5fe238b7994535182f28318c61c78e
Fix assertion failure when Parallel Append is run serially.

Parallel-aware plan nodes must be prepared to run without parallelism
if it's not possible at execution time for whatever reason.  Commit
ab72716778128fb63d54ac256adf7fe6820a1185, which introduced Parallel
Append, overlooked this.

Rajkumar Raghuwanshi reported this problem, and I included his test
case in this patch.  The code changes are by me.

Discussion: http://postgr.es/m/CAKcux6=WqkUudLg1GLZZ7fc5ScWC1+Y9qD=pAHeqy32WoeJQvw@mail.gmail.com
src/backend/executor/nodeAppend.c
src/test/regress/expected/select_parallel.out
src/test/regress/sql/select_parallel.sql