From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_upgrade: Use new routine to retrieve data of PG_VERSION
Date: Tue, 14 Oct 2025 07:29:59 +0000
Message-ID: <E1v8ZTr-001cYF-1R@gemulon.postgresql.org> (raw)
pg_upgrade: Use new routine to retrieve data of PG_VERSION
Unsurprisingly, this shaves code. get_major_server_version() can be
replaced by the new routine added by cd0be131ba6f, with the contents of
PG_VERSION stored in an allocated buffer instead of a fixed-sized one.
Author: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com>
Discussion: https://postgr.es/m/aOiirvWJzwdVCXph@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a7d8052910d6254688ef66840554f1bba80a2238
Modified Files
--------------
src/bin/pg_upgrade/exec.c | 5 +++--
src/bin/pg_upgrade/pg_upgrade.h | 3 +--
src/bin/pg_upgrade/server.c | 39 ---------------------------------------
3 files changed, 4 insertions(+), 43 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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: pg_upgrade: Use new routine to retrieve data of PG_VERSION
In-Reply-To: <E1v8ZTr-001cYF-1R@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