pg_upgrade: Remove unnecessary checks on target cluster's version pg_upgrade only supports the current version as its target. Remove the queries for older server versions from set_locale_and_encoding(), they were dead code.
This is just code cleanup, but backpatch to v16 to help backpatching the next commit that touches the function. Author: Bohyun Lee <[email protected]> Reviewed-by: Shihao Zhong <[email protected]> Discussion: https://www.postgresql.org/message-id/[email protected] Backpatch-through: 16 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/83285b458d3d91faccca47a542cdd230113aa927 Modified Files -------------- src/bin/pg_upgrade/pg_upgrade.c | 51 +++++++++++------------------------------ 1 file changed, 13 insertions(+), 38 deletions(-)
