Skip to content

Commit 1bbcd92

Browse files
Merge pull request #1970 from valyala/postgresql-sync-commit-off
Issue #1947: postgresql: set synchronous_commit to off
2 parents 57c5707 + a48ab7f commit 1bbcd92

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

config/postgresql.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,12 @@ random_page_cost = 2
166166
#wal_level = minimal # minimal, archive, or hot_standby
167167
# (change requires restart)
168168
#fsync = on # turns forced synchronization on or off
169-
#synchronous_commit = on # synchronization level; on, off, or local
169+
170+
# WARNING: disabling synchronous commit may be dangerous in certain cases.
171+
# See http://www.postgresql.org/docs/current/static/runtime-config-wal.html
172+
# for details.
173+
synchronous_commit = off
174+
170175
#wal_sync_method = fsync # the default is the first option
171176
# supported by the operating system:
172177
# open_datasync

0 commit comments

Comments
 (0)