pgsql: pg_upgrade: Use new routine to retrieve data of PG_VERSION - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: pg_upgrade: Use new routine to retrieve data of PG_VERSION
Date
Msg-id E1v8ZTr-001cYF-1R@gemulon.postgresql.org
Whole thread Raw
List 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@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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Introduce frontend API able to retrieve the contents of PG_VERSI
Next
From: Richard Guo
Date:
Subject: pgsql: Rename apply_at to apply_agg_at for clarity