pgsql: Set correct cost data in Gather node added by force_parallel_mod

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Set correct cost data in Gather node added by force_parallel_mod
Date: 2016-07-03 19:35:37
Message-ID: E1bJnB3-0004gd-Dw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0e495c5e2f97aa7e2323705a6daed73cdd6c168c

Modified Files
--------------
src/backend/optimizer/plan/planner.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-07-03 20:55:33 pgsql: Allow treating TABLESAMPLE scans as parallel-safe.
Previous Message Tom Lane 2016-07-03 18:54:04 pgsql: Round rowcount estimate for a partial path to an integer.