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 <[email protected]> Reviewed-by: Masahiko Sawada <[email protected]> Discussion: https://postgr.es/m/[email protected] 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(-)
