Durability modes
The mode is a runtime choice. The bytes on disk are identical in every mode. Only the acknowledge point changes.
| Mode | Ack point |
|---|---|
commit (default) |
After the batch holding the record is written and fdatasynced. This is group commit: up to wal_flushers batches in flight, default 3 (SPEC V1). |
commit_relaxed |
Published before fsync. The WAL guarantees a flush within the relaxed window, 1 ms to 1 s, default 5 ms. Falls back to commit when unflushed bytes exceed 8 MiB (UNFLUSHED_CAP) or a replication hook is active. |
finish_unflushed |
Published without waiting unless unflushed bytes exceed 8 MiB. |
finish_async |
Callback after durability. |
RESP write groups share one fsync per group (SPEC V73).