summaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/pgupgrade.sgml
diff options
context:
space:
mode:
authorJeff Davis2025-02-22 18:03:11 +0000
committerJeff Davis2025-02-22 18:03:11 +0000
commitcb45dc3afb05ce5e5267b1a9be4725d0be7ee33c (patch)
tree2391737d63543921128ec1c9eded068182b55356 /doc/src/sgml/ref/pgupgrade.sgml
parentbba2fbc6238b2a0a7f348fbbb5c31ffa7623bc39 (diff)
Documentation fixups for dumping statistics.
Reported-by: Hayato Kuroda (Fujitsu) <[email protected]> Reported-by: Andrew Dunstan <[email protected]> Discussion: https://postgr.es/m/OSCPR01MB149665630030E7F54FDA8B27BF5C72@OSCPR01MB14966.jpnprd01.prod.outlook.com Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'doc/src/sgml/ref/pgupgrade.sgml')
-rw-r--r--doc/src/sgml/ref/pgupgrade.sgml17
1 files changed, 13 insertions, 4 deletions
diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml
index 6f29ffad76b..7bdd85c5cff 100644
--- a/doc/src/sgml/ref/pgupgrade.sgml
+++ b/doc/src/sgml/ref/pgupgrade.sgml
@@ -792,10 +792,19 @@ psql --username=postgres --file=script.sql postgres
<title>Statistics</title>
<para>
- Because optimizer statistics are not transferred by <command>pg_upgrade</command>, you will
- be instructed to run a command to regenerate that information at the end
- of the upgrade. You might need to set connection parameters to
- match your new cluster.
+ 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. However, some statistics may
+ not be transferred, such as those created explicitly with <xref
+ linkend="sql-createstatistics"/> or custom statistics added by an
+ extension.
+ </para>
+
+ <para>
+ Because not all statistics are not transferred by
+ <command>pg_upgrade</command>, you will be instructed to run a command to
+ regenerate that information at the end of the upgrade. You might need to
+ set connection parameters to match your new cluster.
</para>
<para>