Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit90fdc25

Browse files
committed
docs: mention that expression indexes need analyze
Expression indexes can't benefit from pre-computed statistics oncolumns.Reported-by: Nikolay SamokhvalovDiscussion:https://postgr.es/m/CANNMO++5rw9RDA=p40iMVbMNPaW6O=S0AFzTU=KpYHRpCd1voA@mail.gmail.comAuthor: Nikolay Samokhvalov, modifiedBackpatch-through: 9.5
1 parentd7fa90f commit90fdc25

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎doc/src/sgml/ref/create_index.sgml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,16 @@ Indexes:
704704
sort high</quote>, in queries that depend on indexes to avoid sorting steps.
705705
</para>
706706

707+
<para>
708+
The regularly system collects statistics on all of a table's
709+
columns. Newly-created non-expression indexes can immediately
710+
use these statistics to determine an index's usefulness.
711+
For new expression indexes, it is necessary to run <link
712+
linkend="sql-analyze"><command>ANALYZE</command></link> or wait for
713+
the <link linkend="autovacuum">autovacuum daemon</link> to analyze
714+
the table to generate statistics about new expression indexes.
715+
</para>
716+
707717
<para>
708718
For most index methods, the speed of creating an index is
709719
dependent on the setting of <xref linkend="guc-maintenance-work-mem"/>.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp