cache
provides a good balance between performance and consistency. Use snapshot
for applications requiring perfectly consistent statistical views across multiple queries. Reserve none
for high-performance requirements where slight staleness is acceptable.on
is essential for production monitoring. Only disable if you have extreme performance constraints and no need for real-time monitoring. The overhead is typically negligible compared to the operational benefits.1024
bytes (1KB) is often too small for complex queries. Set to 8192
(8KB) to capture most application queries fully. For environments with very long queries (e.g., ORM-generated queries), consider 16384
(16KB). Monitor actual query lengths in your environment.on
is essential for normal operation. Never disable in production as it would severely impact query optimization. The overhead is minimal and the benefits for query planning are critical.none
. Set to pl
for PL/pgSQL functions only, or all
for all functions. Enable if you need to monitor function performance, but be aware it adds some overhead for function call tracking.off
due to potential overhead. Enable (on
) for performance troubleshooting periods or in environments where I/O monitoring is critical. Test performance impact on your specific platform before enabling permanently.off
. Enable when specifically troubleshooting WAL performance issues. The overhead is generally low but should be tested in your environment. Combine with track_io_timing for comprehensive I/O monitoring.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