diff options
author | Andrew Dunstan | 2021-07-29 09:58:06 +0000 |
---|---|---|
committer | Andrew Dunstan | 2021-07-29 09:58:06 +0000 |
commit | b33259e261ae99dc7c503a6a7615bd492047588b (patch) | |
tree | 2acd629ca6dbfc6367caf7f1ad8da7d35b22998b /src/test/perl/PostgresNode.pm | |
parent | 15c6ede04577f856f702bf0a032297de667f382a (diff) |
Add -w back to the flags for pg_ctl (re)start in PostgresNode
This is now the default for pg_ctl, but having the flag here explicitly
does no harm and helps with backwards compatibility of the PostgresNode
module.
Diffstat (limited to 'src/test/perl/PostgresNode.pm')
-rw-r--r-- | src/test/perl/PostgresNode.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index ed5b4a1c4b5..eb8b18d2328 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -805,7 +805,9 @@ sub start # Note: We set the cluster_name here, not in postgresql.conf (in # sub init) so that it does not get copied to standbys. - $ret = TestLib::system_log('pg_ctl', '-D', $self->data_dir, '-l', + # -w is now the default but having it here does no harm and helps + # compatibility with older versions. + $ret = TestLib::system_log('pg_ctl', '-w', '-D', $self->data_dir, '-l', $self->logfile, '-o', "--cluster-name=$name", 'start'); if ($ret != 0) @@ -919,7 +921,9 @@ sub restart print "### Restarting node \"$name\"\n"; - TestLib::system_or_bail('pg_ctl', '-D', $pgdata, '-l', $logfile, + # -w is now the default but having it here does no harm and helps + # compatibility with older versions. + TestLib::system_or_bail('pg_ctl', '-w', '-D', $pgdata, '-l', $logfile, 'restart'); $self->_update_pid(1); |