diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-08-25 06:35:16 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-08-25 06:35:16 +0200 |
commit | b4ddf3ee30bfb5b7da60411cabcf0589bdbd3f42 (patch) | |
tree | a401136edda851bfa61fe28bf93411591b0ab9e0 /src | |
parent | 4444317f370cbbd6a9bb62d70dd8f1f062952ef4 (diff) | |
download | postgresql-b4ddf3ee30bfb5b7da60411cabcf0589bdbd3f42.tar.gz postgresql-b4ddf3ee30bfb5b7da60411cabcf0589bdbd3f42.zip |
pg_dump: Fix new ICU tests
ICU doesn't support some server encodings, so we need to exclude them
if a non-supported encoding was set up.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/t/002_pg_dump.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/pg_dump/t/002_pg_dump.pl b/src/bin/pg_dump/t/002_pg_dump.pl index 383bb46b25e..2873b662fb6 100644 --- a/src/bin/pg_dump/t/002_pg_dump.pl +++ b/src/bin/pg_dump/t/002_pg_dump.pl @@ -3903,6 +3903,10 @@ my $supports_icu = ($ENV{with_icu} eq 'yes'); my $supports_lz4 = check_pg_config("#define USE_LZ4 1"); my $supports_gzip = check_pg_config("#define HAVE_LIBZ 1"); +# ICU doesn't work with some encodings +my $encoding = $node->safe_psql('postgres', 'show server_encoding'); +$supports_icu = 0 if $encoding eq 'SQL_ASCII'; + # Create additional databases for mutations of schema public $node->psql('postgres', 'create database regress_pg_dump_test;'); $node->psql('postgres', 'create database regress_public_owner;'); |