diff options
author | Masahiko Sawada <msawada@postgresql.org> | 2025-02-21 10:14:36 -0800 |
---|---|---|
committer | Masahiko Sawada <msawada@postgresql.org> | 2025-02-21 10:14:36 -0800 |
commit | 30666d1857d7a785331f5805c20ec19430500466 (patch) | |
tree | 9184307e09b0728531b1922a476c16917c43a765 /src/bin/pg_resetwal/t/001_basic.pl | |
parent | 44fe30fdab6746a287163e7cc093fd36cda8eb92 (diff) |
pg_resetwal: Add --char-signedness option to change the default char signedness.
With the newly added option --char-signedness, pg_resetwal updates the
default char signedness flag in the controlfile. This option is
primarily intended for an upcoming patch that pg_upgrade supports
preserving the default char signedness during upgrades, and is not
meant for manual operation.
Reviewed-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/CB11ADBC-0C3F-4FE0-A678-666EE80CBB07%40amazon.com
Diffstat (limited to 'src/bin/pg_resetwal/t/001_basic.pl')
-rw-r--r-- | src/bin/pg_resetwal/t/001_basic.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/pg_resetwal/t/001_basic.pl b/src/bin/pg_resetwal/t/001_basic.pl index 323cd483cf3..d6bbbd0ceda 100644 --- a/src/bin/pg_resetwal/t/001_basic.pl +++ b/src/bin/pg_resetwal/t/001_basic.pl @@ -173,6 +173,12 @@ command_fails_like( qr/must be greater than/, 'fails with -x value too small'); +# --char-signedness +command_fails_like( + [ 'pg_resetwal', '--char-signedness', 'foo', $node->data_dir ], + qr/error: invalid argument for option --char-signedness/, + 'fails with incorrect --char-signedness option'); + # run with control override options my $out = (run_command([ 'pg_resetwal', '--dry-run', $node->data_dir ]))[0]; |