Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5a5b97

Browse files
committed
doc: simplify docs about analyze and inheritance/partitions
Discussion: https://postgr.es/m/[email protected] Backpatch-through: 10
1 parent b9dce0d commit e5a5b97

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

doc/src/sgml/ref/analyze.sgml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,13 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table_name</replaceable> [
200200
</para>
201201

202202
<para>
203-
If the table being analyzed has one or more children,
204-
<command>ANALYZE</command> will gather statistics twice: once on the
205-
rows of the parent table only, and a second time on the rows of the
206-
parent table with all of its children. This second set of statistics
207-
is needed when planning queries that traverse the entire inheritance
208-
tree. The autovacuum daemon, however, will only consider inserts or
203+
If the table being analyzed has inheritance children,
204+
<command>ANALYZE</command> gathers two sets of statistics: one on the rows
205+
of the parent table only, and a second including rows of both the parent
206+
table and all of its children. This second set of statistics is needed when
207+
planning queries that process the inheritance tree as a whole. The child
208+
tables themselves are not individually analyzed in this case.
209+
The autovacuum daemon, however, will only consider inserts or
209210
updates on the parent table itself when deciding whether to trigger an
210211
automatic analyze for that table. If that table is rarely inserted into
211212
or updated, the inheritance statistics will not be up to date unless you
@@ -221,15 +222,6 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table_name</replaceable> [
221222
partitioning it's guaranteed to be empty.
222223
</para>
223224

224-
<para>
225-
By contrast, if the table being analyzed has inheritance children,
226-
<command>ANALYZE</command> gathers two sets of statistics: one on the rows
227-
of the parent table only, and a second including rows of both the parent
228-
table and all of its children. This second set of statistics is needed when
229-
planning queries that process the inheritance tree as a whole. The child
230-
tables themselves are not individually analyzed in this case.
231-
</para>
232-
233225
<para>
234226
The autovacuum daemon does not process partitioned tables, nor does it
235227
process inheritance parents if only the children are ever modified.

0 commit comments

Comments
 (0)