Tune
| Setting | Value |
|---|---|
| max_connections | 1000 |
| shared_buffers | 15GB |
| effective_cache_size | 45GB |
| maintenance_work_mem | 2GB |
| checkpoint_completion_target | 0.9 |
| wal_buffers | 16MB |
| default_statistics_target | 100 |
| random_page_cost | 4 |
| effective_io_concurrency | 2 |
| work_mem | 31084kB |
| huge_pages | try |
| min_wal_size | 1GB |
| max_wal_size | 4GB |
Check out PgTune for recommendations. DB version is 14.