+ linkend="guc-cpu-tuple-cost"> which is
currently 0.01 (try SHOW cpu_tuple_cost).
arrays for each column, can be set on a
column-by-column basis using the ALTER TABLE SET STATISTICS>
command, or globally by setting the
- <varname>default_statistics_target runtime parameter.
+ <xref linkend="guc-default-statistics-target"> configuration variable.
The default limit is presently 10 entries. Raising the limit
may allow more accurate planner estimates to be made, particularly for
columns with irregular data distributions, at the price of consuming
problem replacing two separate three-way join problems. Because of the
exponential growth of the number of possibilities, this makes a big
difference. The planner tries to avoid getting stuck in huge join search
- problems by not collapsing a subquery if more than <xref linkend="guc-from-collapse-limit">
+ problems by not collapsing a subquery if more than <varname>from_collapse_limit>
FROM> items would result in the parent
query. You can trade off planning time against quality of plan by
adjusting this run-time parameter up or down.
- from_collapse_limit> and join_collapse_limit>
+
and
+ linkend="guc-join-collapse-limit">
are similarly named because they do almost the same thing: one controls
when the planner will flatten out> subselects, and the
other controls when it will flatten out explicit inner joins. Typically