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_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1d9bed66d0d62899971d03ff43b3e58b88ef56ee Modified Files -------------- src/bin/pg_upgrade/pg_upgrade.c | 51 +++++++++++------------------------------ 1 file changed, 13 insertions(+), 38 deletions(-)
