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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/09b40d2cf07b783a3aee31e046a64771f23f5d65

Modified Files
--------------
src/bin/pg_upgrade/pg_upgrade.c | 51 +++++++++++------------------------------
1 file changed, 13 insertions(+), 38 deletions(-)

Reply via email to