pg_upgrade: Check version of target cluster binaries
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 3 Mar 2021 08:44:46 +0000 (09:44 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 3 Mar 2021 08:45:56 +0000 (09:45 +0100)
commitf06b1c598254f8adb2b7f51d6a7685618a7fb121
tree3612b1abbcfe4f54b9e8d7429076cc6f23d25832
parent8af3c233e423e106a5121000ecd92abf57c11704
pg_upgrade: Check version of target cluster binaries

This expands the binary validation in pg_upgrade with a version
check per binary to ensure that the target cluster installation
only contains binaries from the target version.

In order to reduce duplication, validate_exec is exported from
port.h and the local copy in pg_upgrade is removed.

Author: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/flat/9328.1552952117@sss.pgh.pa.us
src/bin/pg_upgrade/exec.c
src/common/exec.c
src/include/port.h