postgresql.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # For a full conf file see:
  2. # https://github.com/TechEmpower/FrameworkBenchmarks/blob/d8f043d183d1ccbba41157bd57314ef61059edb8/toolset/databases/postgres/postgresql.conf.sample
  3. listen_addresses = '*'
  4. max_connections = 2000
  5. ssl = false
  6. # Tuning AIO in PostgreSQL 18:
  7. # https://vondra.me/posts/tuning-aio-in-postgresql-18
  8. # The config.sh script sets the actual value based on that article and the runtime environment.
  9. io_workers = 32
  10. # values from: http://blog.pgaddict.com/posts/performance-since-postgresql-7-4-to-9-4-pgbench
  11. # details: http://www.postgresql.org/docs/9.4/static/runtime-config-resource.html
  12. # http://www.postgresql.org/docs/9.4/static/runtime-config-wal.html
  13. # http://www.postgresql.org/docs/9.4/static/runtime-config-query.html
  14. shared_buffers = 256MB
  15. work_mem = 64MB
  16. maintenance_work_mem = 512MB
  17. wal_level = minimal
  18. # WARNING: disabling synchronous commit may be dangerous in certain cases.
  19. # See http://www.postgresql.org/docs/current/static/runtime-config-wal.html
  20. # for details.
  21. synchronous_commit = off
  22. checkpoint_completion_target = 0.9
  23. max_wal_senders = 0
  24. # when executed on the SSD (otherwise 4)
  25. random_page_cost = 2
  26. effective_cache_size = 8GB
  27. log_line_prefix = '%t '
  28. track_activity_query_size = 2048
  29. shared_preload_libraries = 'pg_stat_statements'
  30. pg_stat_statements.track = all
  31. pg_stat_statements.max = 500000
  32. max_pred_locks_per_transaction = 256