Skip to content

A platform for community discussion. Free, open, simple.

DEV: Set `synchronous_commit` to `off` in `start_test_db` (#25453)

Alan Guo Xiang Tan23738541dae4
diff --git a/script/start_test_db.rb b/script/start_test_db.rb
index 259fbdf9ec2..25400912354 100755
--- a/script/start_test_db.rb
+++ b/script/start_test_db.rb
@@ -29,6 +29,7 @@ if should_setup
run "#{BIN}/initdb -D #{DATA}"
run "echo fsync = off >> #{DATA}/postgresql.conf"
+ run "echo synchronous_commit = off >> #{DATA}/postgresql.conf"
run "echo full_page_writes = off >> #{DATA}/postgresql.conf"
run "echo shared_buffers = 500MB >> #{DATA}/postgresql.conf"
end