8000 Doc: mention that extended stats aren't used for joins · postgres/postgres@59634df · GitHub
[go: up one dir, main page]

Skip to content

Commit 59634df

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 7ddba19 commit 59634df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/src/sgml/ref/create_statistics.sgml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ CREATE STATISTICS [ IF NOT EXISTS ] <replaceable class="parameter">statistics_na
125125
reading it. Once created, however, the ownership of the statistics
126126
object is independent of the underlying table(s).
127127
</para>
128+
129+
<para>
130+
Extended statistics are not currently used by the planner for selectivity
131+
estimations made for table joins. This limitation will likely be removed
132+
in a future version of <productname>PostgreSQL</productname>.
133+
</para>
128134
</refsect1>
129135

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

0 commit comments

Comments
 (0)
0