aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-03-22 23:33:31 +0100
committerPeter Eisentraut <peter@eisentraut.org>2019-03-22 23:33:31 +0100
commit87914e708aabb7e2cd9045fa95b4fed99ca458ec (patch)
treea768e4f32e078cf9a698e5979d99d4df8368fa64
parent4e274a043fc8310ce1148190ef674beca06e990c (diff)
downloadpostgresql-87914e708aabb7e2cd9045fa95b4fed99ca458ec.tar.gz
postgresql-87914e708aabb7e2cd9045fa95b4fed99ca458ec.zip
Make subscription collation test work independent of locale
We need to set the database to UTF8 encoding so that the test can use Unicode escapes.
-rw-r--r--src/test/subscription/t/012_collation.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/subscription/t/012_collation.pl b/src/test/subscription/t/012_collation.pl
index 6c480de9c1c..9f79e96106c 100644
--- a/src/test/subscription/t/012_collation.pl
+++ b/src/test/subscription/t/012_collation.pl
@@ -16,11 +16,11 @@ else
}
my $node_publisher = get_new_node('publisher');
-$node_publisher->init(allows_streaming => 'logical');
+$node_publisher->init(allows_streaming => 'logical', extra => [ '--locale=C', '--encoding=UTF8' ]);
$node_publisher->start;
my $node_subscriber = get_new_node('subscriber');
-$node_subscriber->init(allows_streaming => 'logical');
+$node_subscriber->init(allows_streaming => 'logical', extra => [ '--locale=C', '--encoding=UTF8' ]);
$node_subscriber->start;
my $publisher_connstr = $node_publisher->connstr . ' dbname=postgres';