From 2b49b112987379edc76d4226989a26432c34fcaf Mon Sep 17 00:00:00 2001 From: Kyotaro Horiguchi Date: Wed, 19 Dec 2018 12:43:57 +0900 Subject: [PATCH v19 1/3] Add primary_slot_name to init_from_backup in TAP test. It is convenient that priary_slot_name can be specified on taking a base backup. This adds a new parameter of the name to the perl function. --- src/test/perl/PostgresNode.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index 1d5450758e..b80305b6c5 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -702,6 +702,11 @@ port = $port $self->append_conf('postgresql.conf', "unix_socket_directories = '$host'"); } + if (defined $params{primary_slot_name}) + { + $self->append_conf('postgresql.conf', + "primary_slot_name = $params{primary_slot_name}"); + } $self->enable_streaming($root_node) if $params{has_streaming}; $self->enable_restoring($root_node, $params{standby}) if $params{has_restoring}; return; -- 2.20.1