Browse Source

Merge pull request #1970 from valyala/postgresql-sync-commit-off

Issue #1947: postgresql: set synchronous_commit to off
Mike Smith 9 years ago
parent
commit
1bbcd92fe7
1 changed files with 6 additions and 1 deletions
  1. 6 1
      config/postgresql.conf

+ 6 - 1
config/postgresql.conf

@@ -166,7 +166,12 @@ random_page_cost = 2
 #wal_level = minimal			# minimal, archive, or hot_standby
 #wal_level = minimal			# minimal, archive, or hot_standby
 					# (change requires restart)
 					# (change requires restart)
 #fsync = on				# turns forced synchronization on or off
 #fsync = on				# turns forced synchronization on or off
-#synchronous_commit = on		# synchronization level; on, off, or local
+
+# WARNING: disabling synchronous commit may be dangerous in certain cases.
+# See http://www.postgresql.org/docs/current/static/runtime-config-wal.html
+# for details.
+synchronous_commit = off
+
 #wal_sync_method = fsync		# the default is the first option
 #wal_sync_method = fsync		# the default is the first option
 					# supported by the operating system:
 					# supported by the operating system:
 					#   open_datasync
 					#   open_datasync