0.005
is reasonable for most systems. Decrease to 0.0025
for faster CPUs or increase to 0.01
for slower CPUs. Monitor query plans for index scan versus sequential scan decisions and adjust if the planner consistently makes suboptimal choices.0.0025
works well for most workloads. Decrease for systems with very fast CPUs or increase for slower systems. Consider increasing if you use expensive user-defined functions that the planner might underestimate.0.01
is generally appropriate. Adjust based on your CPU performance relative to disk speed. Decrease for CPU-bound systems or increase for I/O-bound systems where CPU time is less significant compared to disk access.48000MB
(64 _ 1024 _ 0.75 / 8). Adjust based on actual cache usage patterns observed in your workload.100000
is reasonable. Decrease to 50000
for systems with complex queries that benefit from JIT. Increase to 200000
or higher if JIT overhead is affecting simple query performance. Monitor JIT usage and performance impact.500000
provides a good balance. Decrease to 300000
for systems where function call overhead is significant. Increase if compilation time becomes excessive for complex queries.500000
is generally effective. Adjust based on your tolerance for compilation time versus execution performance. Lower values enable more aggressive optimization for simpler queries.512kB
is reasonable. Increase to 8MB
or higher for systems with many CPUs where parallel overhead is justified for larger scans. Decrease if you have fast inter-process communication.8MB
works well for most systems. Increase to 64MB
or higher for very large tables and many CPUs. Decrease for systems with very fast parallel processing capabilities.1000.0
is reasonable. Decrease to 500.0
for systems with fast process creation or increase to 2000.0
for systems with slower parallel setup. Adjust based on actual parallel query performance.0.1
is generally appropriate. Decrease to 0.01
for systems with very fast inter-process communication or shared memory. Increase to 0.5
for systems with slower communication mechanisms.1.1
(down from default 4.0
). For fast NVMe storage, consider 1.0
. For RAID arrays, use 2.0-3.0
. Always test with your specific workload and storage system.1.0
is appropriate as it establishes the baseline. Keep this constant and adjust other cost parameters relative to it. Only change if you have specific knowledge that your sequential I/O performance differs significantly from standard expectations.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