]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: Update pg_dump/dumpall/upgrade about handling of external statistics
authorMichael Paquier <michael@paquier.xyz>
Mon, 22 Jun 2026 23:20:11 +0000 (08:20 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 22 Jun 2026 23:20:11 +0000 (08:20 +0900)
The pages of pg_dump, pg_dumpall and pg_upgrade mentioned that their
--no-statistics and --statistics options did not include the handling of
statistics created by CREATE STATISTICS, which was wrong.

Oversight in c32fb29e979d.

Reported-by: Igi Izumi <igi@sraoss.co.jp>
Discussion: https://postgr.es/m/19529-c7eb1e7a0b07eae6@postgresql.org

doc/src/sgml/ref/pg_dump.sgml
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/ref/pgupgrade.sgml

index ae1bc14d2f26fbe5a9a53418c4678507037380b8..0e0d53926af6610a4333cc3c1fbe323ced463a50 100644 (file)
@@ -1703,7 +1703,6 @@ CREATE DATABASE foo WITH TEMPLATE template0;
    When <option>--statistics</option> is specified,
    <command>pg_dump</command> will include most optimizer statistics in the
    resulting dump file.  This does not include all statistics, such as
-   those created explicitly with <xref linkend="sql-createstatistics"/>,
    custom statistics added by an extension, or statistics collected by the
    cumulative statistics system. Therefore, it may still be useful to
    run <command>ANALYZE</command> after restoring from a dump file to ensure
index 8834b7ec141ea120180d52345bab318baefda2a8..238c87c13f5f1f8bf4c50588f8f7a0a6a22812fe 100644 (file)
@@ -893,7 +893,6 @@ exclude database <replaceable class="parameter">PATTERN</replaceable>
    When <option>--statistics</option> is specified,
    <command>pg_dumpall</command> will include most optimizer statistics in the
    resulting dump file. This does not include all statistics, such as
-   those created explicitly with <xref linkend="sql-createstatistics"/>,
    custom statistics added by an extension, or statistics collected by the
    cumulative statistics system.  Therefore, it may still be useful to
    run <command>ANALYZE</command> on each database after restoring from a dump
index 38ca09b423c32ea71e660274913a76c8877fe1bd..cc44983a9a8d3b2211a044d863d838d0bb0ec0c9 100644 (file)
@@ -834,8 +834,7 @@ psql --username=postgres --file=script.sql postgres
      Unless the <option>--no-statistics</option> option is specified,
      <command>pg_upgrade</command> will transfer most optimizer statistics
      from the old cluster to the new cluster.  This does not transfer
-     all statistics, such as those created explicitly with
-     <xref linkend="sql-createstatistics"/>, custom statistics added by
+     all statistics, such as custom statistics added by
      an extension, or statistics collected by the cumulative statistics system.
     </para>