@@ -521,8 +521,8 @@ PostgreSQL documentation
521
521
Dump only the object definitions (schema), not data or statistics.
522
522
</para>
523
523
<para>
524
- This option is mutually exclusive to <option>--data-only</option>
525
- and <option>--statistics-only</option>.
524
+ This option cannot be used with <option>--data-only</option>
525
+ or <option>--statistics-only</option>.
526
526
It is similar to, but for historical reasons not identical to,
527
527
specifying
528
528
<option>--section=pre-data --section=post-data</option>.
@@ -1635,12 +1635,14 @@ CREATE DATABASE foo WITH TEMPLATE template0;
1635
1635
</para>
1636
1636
1637
1637
<para>
1638
- The dump file produced by <application>pg_dump</application>
1639
- does not contain the statistics used by the optimizer to make
1640
- query planning decisions. Therefore, it is wise to run
1641
- <command>ANALYZE</command> after restoring from a dump file
1642
- to ensure optimal performance; see <xref linkend="vacuum-for-statistics"/>
1643
- and <xref linkend="autovacuum"/> for more information.
1638
+ By default, <command>pg_dump</command> will include most optimizer
1639
+ statistics in the resulting dump file. However, some statistics may not be
1640
+ included, such as those created explicitly with <xref
1641
+ linkend="sql-createstatistics"/> or custom statistics added by an
1642
+ extension. Therefore, it may be useful to run <command>ANALYZE</command>
1643
+ after restoring from a dump file to ensure optimal performance; see <xref
1644
+ linkend="vacuum-for-statistics"/> and <xref linkend="autovacuum"/> for more
1645
+ information.
1644
1646
</para>
1645
1647
1646
1648
<para>
0 commit comments