Skip to content

Commit adc15f4

Browse files
committed
doc: simplify docs about analyze and inheritance/partitions
Discussion: https://postgr.es/m/YxAqYijOsLzgLQgy@momjian.us Backpatch-through: 10
1 parent 0f590f0 commit adc15f4

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
@@ -251,12 +251,13 @@ ANALYZE [ VERBOSE ] [ <replaceable class="parameter">table_and_columns</replacea
251251
</para>
252252

253253
<para>
254-
If the table being analyzed has one or more children,
255-
<command>ANALYZE</command> will gather statistics twice: once on the
256-
rows of the parent table only, and a second time on the rows of the
257-
parent table with all of its children. This second set of statistics
258-
is needed when planning queries that traverse the entire inheritance
259-
tree. The autovacuum daemon, however, will only consider inserts or
254+
If the table being analyzed has inheritance children,
255+
<command>ANALYZE</command> gathers two sets of statistics: one on the rows
256+
of the parent table only, and a second including rows of both the parent
257+
table and all of its children. This second set of statistics is needed when
258+
planning queries that process the inheritance tree as a whole. The child
259+
tables themselves are not individually analyzed in this case.
260+
The autovacuum daemon, however, will only consider inserts or
260261
updates on the parent table itself when deciding whether to trigger an
261262
automatic analyze for that table. If that table is rarely inserted into
262263
or updated, the inheritance statistics will not be up to date unless you
@@ -272,15 +273,6 @@ ANALYZE [ VERBOSE ] [ <replaceable class="parameter">table_and_columns</replacea
272273
partitioning it's guaranteed to be empty.
273274
</para>
274275

275-
<para>
276-
By contrast, if the table being analyzed has inheritance children,
277-
<command>ANALYZE</command> gathers two sets of statistics: one on the rows
278-
of the parent table only, and a second including rows of both the parent
279-
table and all of its children. This second set of statistics is needed when
280-
planning queries that process the inheritance tree as a whole. The child
281-
tables themselves are not individually analyzed in this case.
282-
</para>
283-
284276
<para>
285277
The autovacuum daemon does not process partitioned tables, nor does it
286278
process inheritance parents if only the children are ever modified.

0 commit comments

Comments
 (0)