Skip to content

Commit a31212b

Browse files
committed
Change postgresql.conf.sample to say that fsync=off will corrupt data.
Discussion: 24748.1461764666@sss.pgh.pa.us Per a suggestion from Craig Ringer. This wording from Tom Lane, following discussion.
1 parent cf402ba commit a31212b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/utils/misc/postgresql.conf.sample

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@
182182

183183
#wal_level = minimal # minimal, replica, or logical
184184
# (change requires restart)
185-
#fsync = on # turns forced synchronization on or off
185+
#fsync = on # flush data to disk for crash safety
186+
# (turning this off can cause
187+
# unrecoverable disk corruption)
186188
#synchronous_commit = on # synchronization level;
187189
# off, local, remote_write, remote_apply, or on
188190
#wal_sync_method = fsync # the default is the first option

0 commit comments

Comments
 (0)