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 1w5HKe-0035Ux-1X for pgsql-docs@arkaria.postgresql.org; Wed, 25 Mar 2026 06:03:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5HKc-00C7zq-02 for pgsql-docs@arkaria.postgresql.org; Wed, 25 Mar 2026 06:03:06 +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 1w5HKb-00C7zZ-2S for pgsql-docs@lists.postgresql.org; Wed, 25 Mar 2026 06:03:06 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5HKZ-000000010sc-19oi for pgsql-docs@lists.postgresql.org; Wed, 25 Mar 2026 06:03:05 +0000 Received: by mail-wr1-x443.google.com with SMTP id ffacd0b85a97d-439af7d77f0so4593829f8f.0 for ; Tue, 24 Mar 2026 23:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1774418582; x=1775023382; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=yZ5RqMhErZqf7fb2aLFhxQA1Tg6NeOJQUcUBY2CTW1o=; b=USzpBGdERGcO2cS6LzS4mx4x0EixZiHrdybXRcBNGDKUW9x9Wojdt9HsO4X+R63cYV he8HnFLHg9in2KWd2O0wZzdGdQnIWl1uRqbqIfM26t0mhvoITVKUehnwsFbONoNxz21w NKsir4SG/pGH2eUGCJA/dAy4YzdXMA3G2dVcTDmZRBlHs+byXYrHJT/yYAoqw0qffzVa N7zY0Ct7ou8jLiKWczMQN1HyBHgMzfTLpNpLFTiEC1aZ9p+4oE/cLywRu0OwO8FtGlgq U3ZwqaqDaomXdodtQ+nts8QrYOHYBUO/67IMxJvivb7JmMR2FzTmTc/8LYBj+iIck9ck ovTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774418582; x=1775023382; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yZ5RqMhErZqf7fb2aLFhxQA1Tg6NeOJQUcUBY2CTW1o=; b=hyQcBqwh3fk+CoBZwyRsTQqmUTra/7IoerR5jvRy5Z9dBrXWPxTH64R2nBYhB+GxWv LGHO+B9Qh22+JHyQlyELcKAFipn3emrMjZ0k2ayOPIVWKKRv3+WLqfbB7fSoJtHZqyZ6 oCFZ6dYLj/HM30e4STfktlMDWN4sixfUA0234nnNek0yM1FGxF131Bs2oU5cgnpEsnQM N6b0c1A4amFU5Tj+Zp4vnpZd3L1aX6ygv+47onbcOfMHjmPB1CCSqLJkVN/8F/jw7qAZ d27Md9UOOjHHZbL1VIRpeMxMuN8luUWJCx6pB8Rt+Cjz6ZyM1UTP0CR/Wodxqq38eSvU 6WJw== X-Forwarded-Encrypted: i=1; AJvYcCVvdSGDuzQKubVTLMPVDKfWzaA+ZpTx8fAFay+zHKO1deFAl2voc2wssSTMuP6HzZOw771IUN6fTlq9@lists.postgresql.org X-Gm-Message-State: AOJu0YyZ1tfL1z46vOcgUC9tAm/hpbJ/nHA0wGRdN/bCLtaMrDIJjx6P 4GjNguazCxHrtGUF+REDvRUF4yzsY54/o8d9isf6fxJajdhQmFFAzRflNnjS6P43ykc= X-Gm-Gg: ATEYQzw049DhQzP59af0F3K3MyTrigqL2IeykdxuNnIJWyUDzHAjtxUDX/qoA27wab5 Iew+umIaW6R3mUrGjuiPzAXavTexaVw6upsIgelUaXWgoI1kZxVKoAxhrqLleAwpZzSyD3Sj7Pd eqrYRyNnGG12FgjvMm20X6uiCEC3o6JNfhp7dKFgXWUJfzUrlQ+vfhh+qstac13RAgddwUG/ZNz vpVokTyOzZeXRAb7w284p36cZw2Qm0ew0arRxOYoCkBgQXK3Oe/bvqOA+KK3/z2bqT0K4hiTJWJ FsiJmAEXS16TWbal7oT+PTimxhJ45AI0xRxI32Agg40LlNMhs8yHtZPasKB7jKbIcSXSi+Ur8Gy J82h4lWyEbs4QxaXSnDoItk1kRf60m5frV/H6uoL/P3Cpi7633UKODolcAfcP75W2ng3ckRW0n6 dCVCbgw0+eJI1O7RaRg+j37qMqZ3GK+GI7fK064NQI6n4n/lG3/LK745s= X-Received: by 2002:a05:6000:2c11:b0:439:b3c5:ea1f with SMTP id ffacd0b85a97d-43b88986070mr2746069f8f.16.1774418582519; Tue, 24 Mar 2026 23:03:02 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:270:4fd5:603f:45c2:9807:c104]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b6470380asm42738528f8f.24.2026.03.24.23.03.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Mar 2026 23:03:02 -0700 (PDT) Message-ID: Subject: Re: [PATCH] Doc: clarify that pg_upgrade statistics transfer works cross-version From: Laurenz Albe To: Bruce Momjian Cc: Nikolay Samokhvalov , pgsql-docs@lists.postgresql.org Date: Wed, 25 Mar 2026 07:03:01 +0100 In-Reply-To: References: <1a7d3c03e6169e6340f9d77667433fd0cc5f5897.camel@cybertec.at> <48ad7007c0bbca725847473fe410cdda5753c65d.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2026-03-24 at 14:11 -0400, Bruce Momjian wrote: > On Tue, Mar 24, 2026 at 05:53:27PM +0100, Laurenz Albe wrote: > > Bruce, you are confusing me. Your first sentence suggests that you > > (erroneously) thought that upgrading statistics only works when upgradi= ng >=20 > Right. >=20 > > *from* v18 or better. But your last sentence suggests that you'd rathe= r > > not add anything to the documentation that could dispel that misconcept= ion. >=20 > So, we don't normally document cases where a limitation does not exist.= =20 > I think the logical place to document this is in the PG 18 release > notes. I am still confused why people, like myself, got this wrong.=20 > What is the source of the confusion? Just unclear release notes? I understand now, thanks. I agree with you in principle, but I wouldn't see that as a hard rule that should stand in the way of clarity. Let me quote a precedent from https://www.postgresql.org/docs/current/upgra= ding.html Minor releases never change the internal storage format and are always compatible with earlier and later minor releases of the same major version number. For example, version 10.1 is compatible with version 10.0 and version 10.6. To me, that clarifies that there is no limitation to performing minor updates with a simple restart. I think that is useful information. Perhaps you'd feel better if we phrase it as a limitation: Transferring optimizer statistics only work when upgrading to PostgreSQL version v18 or later, but there is no such limitation to the version of the old cluster. I like my original suggestion better, though. Yours, Laurenz Albe