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

Commit4d966cc

Browse files
committed
doc: document the need to analyze partitioned tables
Autovacuum does not do it.Reported-by: Justin PryzbyDiscussion:https://postgr.es/m/20210913035409.GA10647@telsasoft.comBackpatch-through: 11
1 parent6615bb9 commit4d966cc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎doc/src/sgml/maintenance.sgml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,10 +841,15 @@ analyze threshold = analyze base threshold + analyze scale factor * number of tu
841841
</para>
842842

843843
<para>
844-
Partitioned tables are not processed by autovacuum. Statistics
845-
should be collected by running a manual <command>ANALYZE</command> when it is
846-
first populated, and again whenever the distribution of data in its
847-
partitions changes significantly.
844+
Partitioned tables do not directly store tuples and consequently
845+
are not processed by autovacuum. (Autovacuum does process table
846+
partitions just like other tables.) Unfortunately, this means that
847+
autovacuum does not run <command>ANALYZE</command> on partitioned
848+
tables, and this can cause suboptimal plans for queries that reference
849+
partitioned table statistics. You can work around this problem by
850+
manually running <command>ANALYZE</command> on partitioned tables
851+
when they are first populated, and again whenever the distribution
852+
of data in their partitions changes significantly.
848853
</para>
849854

850855
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp