pg_upgrade: Fix oversight in version checking
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 4 Mar 2021 07:21:59 +0000 (08:21 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 4 Mar 2021 09:34:17 +0000 (10:34 +0100)
commit040af779382e8e4797242c49b93a5a8f9b79c370
tree90f2fc6b5c8cdbefe8ac9e6a5dd4c647394e0ab1
parent4a4241e15b246663fc44b5e5355bc6d19c6d2aa6
pg_upgrade: Fix oversight in version checking

Mistake in f06b1c598254f8adb2b7f51d6a7685618a7fb121: We should only
check the version of the binaries in the target installation.  The
source installation can of course be of a different version.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/flat/E1lHNKN-0005IC-V6%40gemulon.postgresql.org
src/bin/pg_upgrade/exec.c