doc: simplify docs about analyze and inheritance/partitions
authorBruce Momjian
Sat, 3 Sep 2022 03:32:19 +0000 (23:32 -0400)
committerBruce Momjian
Sat, 3 Sep 2022 03:32:19 +0000 (23:32 -0400)
Discussion: https://postgr.es/m/[email protected]

Backpatch-through: 10

doc/src/sgml/ref/analyze.sgml

index 4b92362f18b6b73f8be9bbac254e391d492ec85b..dbdc3a06961789dba78005d9f1689043afd5b868 100644 (file)
@@ -251,12 +251,13 @@ ANALYZE [ VERBOSE ] [ table_and_columns
   
 
   
-    If the table being analyzed has one or more children,
-    ANALYZE will gather statistics twice: once on the
-    rows of the parent table only, and a second time on the rows of the
-    parent table with all of its children.  This second set of statistics
-    is needed when planning queries that traverse the entire inheritance
-    tree.  The autovacuum daemon, however, will only consider inserts or
+    If the table being analyzed has inheritance children,
+    ANALYZE gathers two sets of statistics: one on the rows
+    of the parent table only, and a second including rows of both the parent
+    table and all of its children.  This second set of statistics is needed when
+    planning queries that process the inheritance tree as a whole.  The child
+    tables themselves are not individually analyzed in this case.
+    The autovacuum daemon, however, will only consider inserts or
     updates on the parent table itself when deciding whether to trigger an
     automatic analyze for that table.  If that table is rarely inserted into
     or updated, the inheritance statistics will not be up to date unless you
@@ -272,15 +273,6 @@ ANALYZE [ VERBOSE ] [ table_and_columns
     partitioning it's guaranteed to be empty.
   
 
-  
-    By contrast, if the table being analyzed has inheritance children,
-    ANALYZE gathers two sets of statistics: one on the rows
-    of the parent table only, and a second including rows of both the parent
-    table and all of its children.  This second set of statistics is needed when
-    planning queries that process the inheritance tree as a whole.  The child
-    tables themselves are not individually analyzed in this case.
-  
-
   
     The autovacuum daemon does not process partitioned tables, nor does it
     process inheritance parents if only the children are ever modified.