0
(no delay). For high-throughput OLTP systems with many concurrent commits, consider 10000-20000
microseconds (10-20ms). Test thoroughly and ensure adequate replication or backup strategies are in place to mitigate the increased risk of data loss.5
. Increase to 10-20
for very busy systems with high concurrency. Decrease to 3-5
for systems with moderate concurrency. Adjust based on your typical transaction concurrency patterns.on
is essential for production systems. Only disable for non-critical data or during bulk loading operations where performance is paramount and data loss is acceptable. Never disable in production without understanding the severe risks.on
is strongly recommended. Only disable if you have storage hardware with guaranteed atomic writes (e.g., certain enterprise storage arrays with battery-backed cache). The performance impact is usually worth the safety guarantee.on
provides good durability for most applications. Use remote_write
or remote_apply
for synchronous replication setups. Consider off
for non-critical data or bulk operations where performance is more important than immediate durability.-1
(auto-tuned). Manual setting: 16-64MB
for most systems. For very write-intensive workloads, consider 128MB
. Ensure it's at least 16MB
regardless of auto-tuning results.off
. Enable if you have CPU capacity to spare and want to reduce WAL storage requirements. Particularly beneficial for workloads with large TOAST values or extensive full-page writes.on
for security. Set to off
if you need maximum performance and are not concerned about information leakage. Modern filesystems often handle this efficiently regardless of the setting.replica
is appropriate for most production systems. Use logical
if you need logical replication. Never use minimal
in production as it disables critical crash recovery safety features.off
. Enable if using certain replication setups or if you want extra safety for hint bit consistency. For most standalone databases, the default is sufficient.on
is recommended. Disable only if you experience issues with WAL file recycling on your specific storage system.2MB
. Increase to 8-16MB
for systems with large bulk loading operations. Decrease if you have limited disk I/O capacity.200ms
is reasonable. Adjust based on your durability requirements and performance characteristics. For high-durability needs, consider 100ms
. For better performance, consider 500ms
.1MB
provides a good balance. Increase to 2-4MB
for write-intensive systems with good I/O capacity. Decrease to 512KB
for systems requiring more frequent flushing for durability.Start your journey toward a healthier PostgreSQL with pghealth.
You can explore all features immediately with a free trial β no installation required.
π Start Free Trial