Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c2d35bb

Browse files
committed
Doc: mention that extended stats aren't used for joins
Statistics defined by the CREATE STATISTICS command are only used to assist with the selectivity estimations of base relations, never for joins. Here we mention this fact in the notes section of the CREATE STATISTICS command. Discussion: https://postgr.es/m/CAApHDvrMuVgDOrmg_EtFDZ=AOovq6EsJNnHH1ddyZ8EqL4yzMw@mail.gmail.com Backpatch-through: 11
1 parent 5f0762f commit c2d35bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/src/sgml/ref/create_statistics.sgml

+6
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ CREATE STATISTICS [ [ IF NOT EXISTS ] <replaceable class="parameter">statistics_
171171
maintenance. Expression statistics are built automatically for each
172172
expression in the statistics object definition.
173173
</para>
174+
175+
<para>
176+
Extended statistics are not currently used by the planner for selectivity
177+
estimations made for table joins. This limitation will likely be removed
178+
in a future version of <productname>PostgreSQL</productname>.
179+
</para>
174180
</refsect1>
175181

176182
<refsect1 id="sql-createstatistics-examples">

0 commit comments

Comments
 (0)