Re: [PATCH] Doc: clarify that pg_upgrade statistics transfer works cross-version - Mailing list pgsql-docs

From Nikolay Samokhvalov
Subject Re: [PATCH] Doc: clarify that pg_upgrade statistics transfer works cross-version
Date
Msg-id CAM527d89GmcMV5GD2PXS-a3ay3YE-HVSwV4NT0_o2ySf_5v8Kw@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Doc: clarify that pg_upgrade statistics transfer works cross-version  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: [PATCH] Doc: clarify that pg_upgrade statistics transfer works cross-version
List pgsql-docs
On Mon, Mar 23, 2026 at 23:59 Laurenz Albe <laurenz.albe@cybertec.at> wrote:
...
I think that your patch offers too much detail,
like from which relations the statistics are extracted.  Anybody
who wants to know that level of detail probably has to read the
source code anyway.

How about adding a simple remark, like

--- a/doc/src/sgml/ref/pgupgrade.sgml
+++ b/doc/src/sgml/ref/pgupgrade.sgml
@@ -837,6 +837,8 @@ psql --username=postgres --file=script.sql postgres
      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.
+     Transferring optimizer statistics works regardless of the old cluster's
+     major version.
     </para>

     <para>

That would work too -- my goal was just to resolve confusion.

Nik

pgsql-docs by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: [PATCH] Doc: clarify that pg_upgrade statistics transfer works cross-version
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCH] Doc: clarify that pg_upgrade statistics transfer works cross-version