mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
Disable fsync throughout TAP test suites.
Most suites already did so via start_test_server(), but the pg_rewind, pg_ctl and pg_controldata suites ran a postmaster or initdb with fsync enabled. This halves the pg_rewind suite's runtime on buildfarm member tern. It makes tern and that machine's other buildfarm members less vulnerable to noise failures from postmaster startup overrunning the 60s pg_ctl timeout. Back-patch to 9.5, where pg_rewind was introduced.
This commit is contained in:
@ -143,6 +143,7 @@ sub standard_initdb
|
||||
|
||||
open CONF, ">>$pgdata/postgresql.conf";
|
||||
print CONF "\n# Added by TestLib.pm)\n";
|
||||
print CONF "fsync = off\n";
|
||||
if ($windows_os)
|
||||
{
|
||||
print CONF "listen_addresses = '127.0.0.1'\n";
|
||||
@ -189,7 +190,7 @@ sub start_test_server
|
||||
standard_initdb "$tempdir/pgdata";
|
||||
|
||||
$ret = system_log('pg_ctl', '-D', "$tempdir/pgdata", '-w', '-l',
|
||||
"$log_path/postmaster.log", '-o', "--fsync=off --log-statement=all",
|
||||
"$log_path/postmaster.log", '-o', "--log-statement=all",
|
||||
'start');
|
||||
|
||||
if ($ret != 0)
|
||||
|
Reference in New Issue
Block a user