pg_upgrade: Add --set-char-signedness to set the default char signedness of new cluster.
authorMasahiko Sawada <msawada@postgresql.org>
Fri, 21 Feb 2025 18:23:39 +0000 (10:23 -0800)
committerMasahiko Sawada <msawada@postgresql.org>
Fri, 21 Feb 2025 18:23:39 +0000 (10:23 -0800)
commit1aab6805919b84a2f2477132d96f2147ed36150e
treef4c2e1a63cb89b032eea833a701db711bc50fcde
parenta8238f87f980848c2d69c105555c4383e20e7670
pg_upgrade: Add --set-char-signedness to set the default char signedness of new cluster.

This change adds a new option --set-char-signedness to pg_upgrade. It
enables user to set arbitrary signedness during pg_upgrade. This helps
cases where user who knew they copied the v17 source cluster from
x86 (signedness=true) to ARM (signedness=false) can pg_upgrade
properly without the prerequisite of acquiring an x86 VM.

Reviewed-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/CB11ADBC-0C3F-4FE0-A678-666EE80CBB07%40amazon.com
doc/src/sgml/ref/pgupgrade.sgml
src/bin/pg_upgrade/check.c
src/bin/pg_upgrade/option.c
src/bin/pg_upgrade/pg_upgrade.c
src/bin/pg_upgrade/pg_upgrade.h
src/bin/pg_upgrade/t/005_char_signedness.pl