Skip to content

Commit

Permalink
Reduce default_statistics_target to 100.
Browse files Browse the repository at this point in the history
This project set it to 500 previously, without evidences
that such a high value is really needed. A PostgreSQL
default of 100 will improve the planner resources usage,
as well as speed up autovacuum/autoanalyze.

The user can set the higher value per-table if they need it.
  • Loading branch information
alexeyklyukin committed Oct 12, 2023
1 parent 77a7337 commit 3e50174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pgtune/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const (
EffectiveIOKey = "effective_io_concurrency" // linux only

checkpointDefault = "0.9"
statsTargetDefault = "500"
statsTargetDefault = "100"
randomPageCostDefault = "1.1"
autovacuumMaxWorkersDefault = "10"
autovacuumNaptimeDefault = "10"
Expand Down

0 comments on commit 3e50174

Please sign in to comment.