Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w510H-002oCw-2W for pgsql-docs@arkaria.postgresql.org; Tue, 24 Mar 2026 12:37:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w510F-006jzL-0k for pgsql-docs@arkaria.postgresql.org; Tue, 24 Mar 2026 12:36:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w510E-006jzD-37 for pgsql-docs@lists.postgresql.org; Tue, 24 Mar 2026 12:36:59 +0000 Received: from mail-dl1-x122e.google.com ([2607:f8b0:4864:20::122e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w510C-00000000sRC-3O3n for pgsql-docs@lists.postgresql.org; Tue, 24 Mar 2026 12:36:59 +0000 Received: by mail-dl1-x122e.google.com with SMTP id a92af1059eb24-12732165d1eso1734216c88.1 for ; Tue, 24 Mar 2026 05:36:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774355814; cv=none; d=google.com; s=arc-20240605; b=bVtwmYom73ZKuLUFtKoYamVPT7rtwh0KOcI35TgN7Z2S8IdOwN3pmerTxIZbIPZ2Hd g9aab+H6yKtLiMkETQGqh6/ASoFq0FkbjNDv56vQn9R51ME9PhNn8eaPsKxHswC6MJ93 zyI/9EYQwfYbZSbi4bf3qoea5IW985MxBMQb3JsWK5lFR5x2UOw8H6Z764RF6H2mLl79 klRGyXZ+42IhmrVJ5CvL+SpLbZzhuGFXNV2kLl/+FvehJqhDQJZPYCSHQSbCm6ImvzhR vAiOlI7a0u/+a6KgYoepfEQklG2BRTtjR9wasQ8U70dAv450VwjIBtWNjPGwTca17FTU 4tDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=kEkoTdiHs6Pl64bVVA/dUeuXWBkMr9IZFAzTFswByNs=; fh=zZcClH4hQIwwWac46Kwe8sf0jzpwl1StOhokF2QRLCw=; b=gwcu/P+eVpJr96G9TboBPgnUf6bYKFxfuyvnD5pvCnxHDp0N7E3oOnaDZB4tYwzDvZ cuWibmTVFpmlyujamiFygm2zq8Q+64nrDS7ESgIE3HxTNkWjB2jLSFba60V/q+Qnb8Gz h803XpZ/KE+k73uDBzfscinSv2qPDJ497txJpiVPAsdGjhqR5D2B4d71dINR16v2hgYO Osw2R9Egau62/YVRofqrDkkAfSXNZzdCO2TXvzngSeY17yuDsr6GLw6eLuaGL0UoX9vU oXb561PSEtCWCoH3JCRELW+cHmoohUzc+LLPJ+vt9fuONKErhewXp9h9VX83uNpqUEvX PlSw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postgres.ai; s=google; t=1774355814; x=1774960614; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kEkoTdiHs6Pl64bVVA/dUeuXWBkMr9IZFAzTFswByNs=; b=P5RQa7P2aEQdEJtCZ9HqZfD222YiUcWcEHUsJxrcdcJ45lnoChxLWQM4cWAPlP41zy X/WP8zEbT5YWtPkNYuFtvDdcb8ubYNBmk60ibTKqCBqodGfg1ELoIx+WV+OByYAAYJJ9 dMCcxMyL56foFHyA+1zCt6VpN8/bqfFgKrfffc8VuelusLihNMqUDYArPGok6tYtjYXt MHwYYrQ4jsBnmpt16+DuWYmboU51B2pE2CcYxBSbOmyMjqQy+FWUA25mXPQsjeDbsEJR SG53K+m3ODHOI6K8tN+EUus9gb+BNvELT0hSi50nYIbNT0TSh4zMJRI7dKE35RHpWAyh zvUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774355814; x=1774960614; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kEkoTdiHs6Pl64bVVA/dUeuXWBkMr9IZFAzTFswByNs=; b=JrJQLSUTquUNwRm38VBhEne1DYlhajUY9kC84vnCJGZ2bbrjphl//9pRCT2QdOZ35c aZjmw4A1YxEiPxHMAeMxiDW7yqyZMEKFyvqtMjguM6Up75xa/YzlD7cA2ZgrqMVH24vr 51PfpX7gEVA/Qx/KaP0sguuJnNOoxRY5RHwOzlc4bdap0qutER50q6jV4xb4+amhsFNr EievNVjtGHSAoxi7Ashax8+eObV+Rc7Ee9JXQoUHcepUJbtzM6TvzlxAsIfBNwmR0x1P tucvwztnapVA6HeFEZ2+aOcXWEfjPnYNsmdu1q2gYSGd4HuHOVM4s+WVgAIoBKs+0eNz eY6w== X-Gm-Message-State: AOJu0Yxnw4mUm7pcFkdFbntMy1UHYY3PyGaMdtspQgANL+Iz9X5bshLt 4N7SA762j/9T732WllNDttyAI63gBxV6A+x52FM/vX4k4OIykU4r+SnyPut6z02iSdqtpsHKcmJ +VfAcTEzKrCTDCH2szG2pI77xCh99z+PXORmd0yKjf810kCf85waOyqo= X-Gm-Gg: ATEYQzy9gYuHA1Xik0ijSrEeuYRcsTRJJ1qwXw+D2y/b6gwzZR3kmJLD6zS0yrMpRa9 dnwTJ5oT/ox43y9bYljXtf1x+4XdS2JH6G5oppcfgFiQd+rCK7/ugDtsGHAkAAq9tpS5J1+gkin Ivrm8ArQqtkvIzd93KdICewlDba8wEnHfFK/OErx702zRVUTmrP+VoPNr9QfapS8aiqBY5pda92 B/s3eHixOax1PyCCQoHcn/p681uu4w0iX/KN8wvP5wcvv0+F+2PYJnFnk0ybZetKUlju1yFg1Mw 3+X5qVmm X-Received: by 2002:a05:7022:b96:b0:119:e56b:98a4 with SMTP id a92af1059eb24-12a726528aamr7066114c88.11.1774355813588; Tue, 24 Mar 2026 05:36:53 -0700 (PDT) MIME-Version: 1.0 References: <1a7d3c03e6169e6340f9d77667433fd0cc5f5897.camel@cybertec.at> In-Reply-To: <1a7d3c03e6169e6340f9d77667433fd0cc5f5897.camel@cybertec.at> From: Nikolay Samokhvalov Date: Tue, 24 Mar 2026 05:36:42 -0700 X-Gm-Features: AaiRm53JuSwRq_4ACB1ueg3dRpNvqzQJ_i8ZgkSyDi4772kpZX3EHqfE1XKs5aw Message-ID: Subject: Re: [PATCH] Doc: clarify that pg_upgrade statistics transfer works cross-version To: Laurenz Albe Cc: pgsql-docs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000f971e7064dc467c3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f971e7064dc467c3 Content-Type: text/plain; charset="UTF-8" On Mon, Mar 23, 2026 at 23:59 Laurenz Albe 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 > , 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. > > > That would work too -- my goal was just to resolve confusion. Nik > --000000000000f971e7064dc467c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Mar 23, 2026 at 23:59 Laurenz Albe <laurenz.albe@cybertec.at> wrote:
...
I think that your patc= h offers too much detail,
like from which relations the statistics are extracted.=C2=A0 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=3Dpostgres --file=3Dscript.sql postgres=
=C2=A0 =C2=A0 =C2=A0 all statistics, such as those created explicitly with<= br> =C2=A0 =C2=A0 =C2=A0 <xref linkend=3D"sql-createstatistics"/&g= t;, custom statistics added by
=C2=A0 =C2=A0 =C2=A0 an extension, or statistics collected by the cumulativ= e statistics system.
+=C2=A0 =C2=A0 =C2=A0Transferring optimizer statistics works regardless of = the old cluster's
+=C2=A0 =C2=A0 =C2=A0major version.
=C2=A0 =C2=A0 =C2=A0</para>

=C2=A0 =C2=A0 =C2=A0<para>

That would work too -- my goal was just to resolve confusio= n.

Nik
--000000000000f971e7064dc467c3--