Tune
| Setting | Value |
|---|---|
| max_connections | 1713 |
| shared_buffers | 3987040kB |
| effective_cache_size | 7974080kB |
| maintenance_work_mem | 261445kB |
| checkpoint_completion_target | 0.9 |
| wal_buffers | 64MB |
| default_statistics_target | 100 |
| random_page_cost | 4 |
| effective_io_concurrency | 1 |
| work_mem | 4MB |
| huge_pages | on |
| min_wal_size | 192MB |
| max_wal_size | 2GB |
Check out PgTune for recommendations. DB version is 15.