@@ -200,12 +200,13 @@ ANALYZE [ VERBOSE ] [ <replaceable class="PARAMETER">table_name</replaceable> [
200
200
</para>
201
201
202
202
<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
209
210
updates on the parent table itself when deciding whether to trigger an
210
211
automatic analyze for that table. If that table is rarely inserted into
211
212
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> [
221
222
partitioning it's guaranteed to be empty.
222
223
</para>
223
224
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
-
233
225
<para>
234
226
The autovacuum daemon does not process partitioned tables, nor does it
235
227
process inheritance parents if only the children are ever modified.
0 commit comments