Skip to content

Commit b33259e

Browse files
committed
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.
1 parent 15c6ede commit b33259e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,9 @@ sub start
805805

806806
# Note: We set the cluster_name here, not in postgresql.conf (in
807807
# sub init) so that it does not get copied to standbys.
808-
$ret = TestLib::system_log('pg_ctl', '-D', $self->data_dir, '-l',
808+
# -w is now the default but having it here does no harm and helps
809+
# compatibility with older versions.
810+
$ret = TestLib::system_log('pg_ctl', '-w', '-D', $self->data_dir, '-l',
809811
$self->logfile, '-o', "--cluster-name=$name", 'start');
810812

811813
if ($ret != 0)
@@ -919,7 +921,9 @@ sub restart
919921

920922
print "### Restarting node \"$name\"\n";
921923

922-
TestLib::system_or_bail('pg_ctl', '-D', $pgdata, '-l', $logfile,
924+
# -w is now the default but having it here does no harm and helps
925+
# compatibility with older versions.
926+
TestLib::system_or_bail('pg_ctl', '-w', '-D', $pgdata, '-l', $logfile,
923927
'restart');
924928

925929
$self->_update_pid(1);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy