| parameter | default | Recommend | Description |
| shared_buffers | 32MB | 20~25% | Sets the amount of memory the database server uses for shared memory buffers. This value set quarter your system. |
| work_mem | 1M | 64 #512KB | sort buffer size. NOTE: the maximum used memory size is work_mem*max_connections. |
| wal_buffers | 32KB | 64 #512KB | The amount of shared memory used for WAL data that has not yet been written to disk. |
| checkpoint_segments | 3 | 16 # 256MB | checkpoint_segments |
| wal_sync_method | you need to select proper sync type. if you don't know type proper, you determine it using pgbench | ||
| max_connections | ??? | 1500程度まで | versionによって最大値は異なるが、pgbenchを使用して確認したところでは1500程度までなら 遅延しないことは確認できました。 |
| random_page_cost | 4 | 2 | seq_page_cost の値と相対的に値が関連します。 seq_page_cost の値が低く random_page_cost の値が高ければ table_scan の可能性が高くなる。 seq_page_cost の値が低く random_page_cost の値が seq_page_cost に近くなる場合にはindex_scan の可能性が高くなる。 |
| maintenance_work_mem | 32MB | create index 時やvacuum時のメモリ使用量を指定する。 最大使用メモリがautovacuum_max_workers*maintenance_work_memとなるため注意 |