How to perform initial / rough Postgres tuning
Modern Postgres provides more than 300 settings (a.k.a. GUC variables – "grand unified configuration").
Modern Postgres provides more than 300 settings (a.k.a. GUC variables – "grand unified configuration").
Here are general recommendations for basic tuning of Linux to run Postgres under heavy OLTP (web/mobile apps) workloads.
work_mem is used for sorting and hashing operations during query execution.
The file ~/.psqlrc can be used to set some settings by default. For example:
The 80/20 rule (a.k.a. Pareto principle) is often enough to achieve a good level of performance for OLTP workloads – it is recommended, in most cases, to…