@@ -251,12 +251,13 @@ ANALYZE [ VERBOSE ] [ <replaceable class="parameter">table_and_columns</replacea
251
251
</para>
252
252
253
253
<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
260
261
updates on the parent table itself when deciding whether to trigger an
261
262
automatic analyze for that table. If that table is rarely inserted into
262
263
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
272
273
partitioning it's guaranteed to be empty.
273
274
</para>
274
275
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
-
284
276
<para>
285
277
The autovacuum daemon does not process partitioned tables, nor does it
286
278
process inheritance parents if only the children are ever modified.
0 commit comments