postgresql/src/include/optimizer
Robert Haas 2609e91fcf Fix regression in parallel planning against inheritance tables.
Commit 51ee6f3160 accidentally changed
the behavior around inheritance hierarchies; before, we always
considered parallel paths even for very small inheritance children,
because otherwise an inheritance hierarchy with even one small child
wouldn't be eligible for parallelism.  That exception was inadverently
removed; put it back.

In passing, also adjust the degree-of-parallelism comptuation for
index-only scans not to consider the number of heap pages fetched.
Otherwise, we'll avoid parallel index-only scans on tables that are
mostly all-visible, which isn't especially logical.

Robert Haas and Amit Kapila, per a report from Ashutosh Sharma.

Discussion: http://postgr.es/m/CAE9k0PmgSoOHRd60SHu09aRVTHRSs8s6pmyhJKWHxWw9C_x+XA@mail.gmail.com
2017-03-14 14:33:14 -04:00
..
clauses.h Move targetlist SRF handling from expression evaluation to new executor node. 2017-01-18 13:40:27 -08:00
cost.h Add a Gather Merge executor node. 2017-03-09 07:49:29 -05:00
geqo.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
geqo_copy.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
geqo_gene.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
geqo_misc.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
geqo_mutation.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
geqo_pool.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
geqo_random.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
geqo_recombination.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
geqo_selection.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
joininfo.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
orclauses.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pathnode.h Add a Gather Merge executor node. 2017-03-09 07:49:29 -05:00
paths.h Fix regression in parallel planning against inheritance tables. 2017-03-14 14:33:14 -04:00
placeholder.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
plancat.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
planmain.h Improve RLS planning by marking individual quals with security levels. 2017-01-18 12:58:20 -05:00
planner.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
predtest.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
prep.h Improve RLS planning by marking individual quals with security levels. 2017-01-18 12:58:20 -05:00
restrictinfo.h Improve RLS planning by marking individual quals with security levels. 2017-01-18 12:58:20 -05:00
subselect.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
tlist.h Move targetlist SRF handling from expression evaluation to new executor node. 2017-01-18 13:40:27 -08:00
var.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00