pg_upgrade: Check for unsupported encodings. master github/master
authorThomas Munro <tmunro@postgresql.org>
Wed, 8 Apr 2026 05:45:09 +0000 (17:45 +1200)
committerThomas Munro <tmunro@postgresql.org>
Wed, 8 Apr 2026 05:45:09 +0000 (17:45 +1200)
commitce11e63f812f987a9d6256b81cd4af91921a5a39
treed3fd383fd3df9ac98598ce0d3b3db81146ef8c8c
parent77645d44e3552ca0690e158ce5c51dc75c4934a4
pg_upgrade: Check for unsupported encodings.

Since we have dropped MULE_INTERNAL, add a check that all encodings used
in the source cluster are still supported according to
PG_ENCODING_BE_VALID().  This is done generically, in case we decide to
drop another encoding some day.

Suggested-by: Jeff Davis <pgsql@j-davis.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CA%2BhUKGKXDXh-FdU0orjfv%2BF08f%3DD91BhV3Ra-4zL-q%2BJmGYqTA%40mail.gmail.com
src/bin/pg_upgrade/check.c