pgsql: pg_upgrade: Use new routine to retrieve data of PG_VERSION

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_upgrade: Use new routine to retrieve data of PG_VERSION
Date: 2025-10-14 07:29:59
Message-ID: E1v8ZTr-001cYF-1R@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)paquier(dot)xyz>
Reviewed-by: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Richard Guo 2025-10-14 07:37:26 pgsql: Rename apply_at to apply_agg_at for clarity
Previous Message Michael Paquier 2025-10-14 07:21:14 pgsql: Introduce frontend API able to retrieve the contents of PG_VERSI