aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/RewindTest.pm
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-01-20 14:13:11 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-01-20 14:13:11 -0300
commitc8642d909fdd57c36dd71e0b0bb4071523324794 (patch)
tree651e739a49ea41e568debd3c7e3a52448fb3bacf /src/bin/pg_rewind/RewindTest.pm
parent216d5684325dd2f6959f4859648e7aa908ae0757 (diff)
downloadpostgresql-c8642d909fdd57c36dd71e0b0bb4071523324794.tar.gz
postgresql-c8642d909fdd57c36dd71e0b0bb4071523324794.zip
PostgresNode: Add names to nodes
This makes the log files easier to follow when investigating a test failure. Author: Michael Paquier Review: Noah Misch
Diffstat (limited to 'src/bin/pg_rewind/RewindTest.pm')
-rw-r--r--src/bin/pg_rewind/RewindTest.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_rewind/RewindTest.pm b/src/bin/pg_rewind/RewindTest.pm
index 41d294ed3f6..68834cd6a44 100644
--- a/src/bin/pg_rewind/RewindTest.pm
+++ b/src/bin/pg_rewind/RewindTest.pm
@@ -116,7 +116,7 @@ sub setup_cluster
{
# Initialize master, data checksums are mandatory
- $node_master = get_new_node();
+ $node_master = get_new_node('master');
$node_master->init;
# Custom parameters for master's postgresql.conf
@@ -144,7 +144,7 @@ sub start_master
sub create_standby
{
- $node_standby = get_new_node();
+ $node_standby = get_new_node('standby');
$node_master->backup('my_backup');
$node_standby->init_from_backup($node_master, 'my_backup');
my $connstr_master = $node_master->connstr('postgres');