postgresql/src/include/optimizer
Jeff Davis 92c58fd948 Rework HashAgg GUCs.
Eliminate enable_groupingsets_hash_disk, which was primarily useful
for testing grouping sets that use HashAgg and spill. Instead, hack
the table stats to convince the planner to choose hashed aggregation
for grouping sets that will spill to disk. Suggested by Melanie
Plageman.

Rename enable_hashagg_disk to hashagg_avoid_disk_plan, and invert the
meaning of on/off. The new name indicates more strongly that it only
affects the planner. Also, the word "avoid" is less definite, which
should avoid surprises when HashAgg still needs to use the
disk. Change suggested by Justin Pryzby, though I chose a different
GUC name.

Discussion: https://postgr.es/m/CAAKRu_aisiENMsPM2gC4oUY1hHG3yrCwY-fXUg22C6_MJUwQdA%40mail.gmail.com
Discussion: https://postgr.es/m/20200610021544.GA14879@telsasoft.com
Backpatch-through: 13
2020-06-11 12:57:43 -07:00
..
appendinfo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
clauses.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
cost.h Rework HashAgg GUCs. 2020-06-11 12:57:43 -07:00
geqo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_copy.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_gene.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_misc.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_mutation.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_pool.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_random.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_recombination.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
geqo_selection.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
inherit.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
joininfo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
optimizer.h Allow the planner-related functions and hook to accept the query string. 2020-03-30 13:51:05 +09:00
orclauses.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
paramassign.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pathnode.h Support FETCH FIRST WITH TIES 2020-04-07 16:22:13 -04:00
paths.h Consider Incremental Sort paths at additional places 2020-04-07 16:43:22 +02:00
placeholder.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
plancat.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
planmain.h Support FETCH FIRST WITH TIES 2020-04-07 16:22:13 -04:00
planner.h Allow the planner-related functions and hook to accept the query string. 2020-03-30 13:51:05 +09:00
prep.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
restrictinfo.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
subselect.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tlist.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00