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_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/972ad5d829d8a86d0c1af47c83f6557ed958e92e Modified Files -------------- src/bin/pg_upgrade/pg_upgrade.c | 37 +++++++++++++------------------------ 1 file changed, 13 insertions(+), 24 deletions(-)
