]> granicus.if.org Git - postgresql/commit
Set correct cost data in Gather node added by force_parallel_mode.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Jul 2016 19:35:29 +0000 (15:35 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 3 Jul 2016 19:35:29 +0000 (15:35 -0400)
commit0e495c5e2f97aa7e2323705a6daed73cdd6c168c
tree62804fa1fd5e0ca8cb59579068e403e829a86e94
parentc89d507649df9fbc21617e02ab4d5e765a28b7df
Set correct cost data in Gather node added by force_parallel_mode.

We were just leaving the cost fields zeroes, which produces obviously bogus
output with force_parallel_mode = on.  With force_parallel_mode = regress,
the zeroes are hidden, but I wonder if they wouldn't still confuse add-on
code such as auto_explain.
src/backend/optimizer/plan/planner.c