pg_upgrade: Use new routine to retrieve data of PG_VERSION
authorMichael Paquier <michael@paquier.xyz>
Tue, 14 Oct 2025 07:27:13 +0000 (16:27 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 14 Oct 2025 07:27:13 +0000 (16:27 +0900)
commita7d8052910d6254688ef66840554f1bba80a2238
tree6a444d992edfd0a1fd58f47356a0bf342ef94211
parentcd0be131ba6f7e8b1323d188db20d15c2504b021
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
src/bin/pg_upgrade/exec.c
src/bin/pg_upgrade/pg_upgrade.h
src/bin/pg_upgrade/server.c