From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_upgrade: Remove unnecessary checks on target cluster's versio
Date: Fri, 20 Nov 2026 10:22:35 +0000
Message-ID: <E1xULlK-00000000VEz-3H4U@gemulon.postgresql.org> (raw)
pg_upgrade: Remove unnecessary checks on target cluster's version
pg_upgrade only supports the current version as its target. Remove
the queries for older server versions from set_locale_and_encoding(),
they were dead code.
This is just code cleanup, but backpatch to v16 to help backpatching
the next commit that touches the function.
Author: Bohyun Lee <bohyun.lee@databricks.com>
Reviewed-by: Shihao Zhong <zhong950419@gmail.com>
Discussion: https://www.postgresql.org/message-id/8c65df31-345e-429c-98fa-867f08d703b6@iki.fi
Backpatch-through: 16
Branch
------
REL_16_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/972ad5d829d8a86d0c1af47c83f6557ed958e92e
Modified Files
--------------
src/bin/pg_upgrade/pg_upgrade.c | 37 +++++++++++++------------------------
1 file changed, 13 insertions(+), 24 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: pg_upgrade: Remove unnecessary checks on target cluster's versio
In-Reply-To: <E1xULlK-00000000VEz-3H4U@gemulon.postgresql.org>
References: <E1xULlK-00000000VEz-3H4U@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox