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