Skip to content

Commit b4ddf3e

Browse files
committed
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.
1 parent 4444317 commit b4ddf3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/pg_dump/t/002_pg_dump.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3903,6 +3903,10 @@
39033903
my $supports_lz4 = check_pg_config("#define USE_LZ4 1");
39043904
my $supports_gzip = check_pg_config("#define HAVE_LIBZ 1");
39053905
3906+
# ICU doesn't work with some encodings
3907+
my $encoding = $node->safe_psql('postgres', 'show server_encoding');
3908+
$supports_icu = 0 if $encoding eq 'SQL_ASCII';
3909+
39063910
# Create additional databases for mutations of schema public
39073911
$node->psql('postgres', 'create database regress_pg_dump_test;');
39083912
$node->psql('postgres', 'create database regress_public_owner;');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy