1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

PostgresNode: Add names to nodes

This makes the log files easier to follow when investigating a test
failure.

Author: Michael Paquier
Review: Noah Misch
This commit is contained in:
Alvaro Herrera
2016-01-20 14:13:11 -03:00
parent 216d568432
commit c8642d909f
20 changed files with 48 additions and 37 deletions

View File

@ -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');