From: David Rowley Date: Thu, 22 Jun 2023 00:50:55 +0000 (+1200) Subject: Doc: mention that extended stats aren't used for joins X-Git-Tag: REL_12_16~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3c2fae0636ed7e9e1a6a4365192ae8ef7af425f;p=thirdparty%2Fpostgresql.git 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 --- diff --git a/doc/src/sgml/ref/create_statistics.sgml b/doc/src/sgml/ref/create_statistics.sgml index b43aaf142f5..9dfd9639596 100644 --- a/doc/src/sgml/ref/create_statistics.sgml +++ b/doc/src/sgml/ref/create_statistics.sgml @@ -127,6 +127,12 @@ CREATE STATISTICS [ IF NOT EXISTS ] statistics_na reading it. Once created, however, the ownership of the statistics object is independent of the underlying table(s). + + + Extended statistics are not currently used by the planner for selectivity + estimations made for table joins. This limitation will likely be removed + in a future version of PostgreSQL. +