We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent15c6ede commitb33259eCopy full SHA for b33259e
src/test/perl/PostgresNode.pm
@@ -805,7 +805,9 @@ sub start
805
806
# Note: We set the cluster_name here, not in postgresql.conf (in
807
# sub init) so that it does not get copied to standbys.
808
-$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
809
+# compatibility with older versions.
810
+$ret = TestLib::system_log('pg_ctl','-w','-D',$self->data_dir,'-l',
811
$self->logfile,'-o',"--cluster-name=$name",'start');
812
813
if ($ret != 0)
@@ -919,7 +921,9 @@ sub restart
919
921
920
922
print"### Restarting node\"$name\"\n";
923
-TestLib::system_or_bail('pg_ctl','-D',$pgdata,'-l',$logfile,
924
925
926
+TestLib::system_or_bail('pg_ctl','-w','-D',$pgdata,'-l',$logfile,
927
'restart');
928
929
$self->_update_pid(1);