checkpoint_timeout
Longest time between automatic checkpoints.
- Predeterminado
5min- Range
- 30s to 1d
- Restart needed
- No
- Default checked on
- PostgreSQL 18
Lo que hace
Bounds crash recovery time and the WAL generated between checkpoints. Each checkpoint also restarts the cycle of full-page writes.
Valor predeterminado
5min. 5min (PostgreSQL 18).
Check the current value
SHOW checkpoint_timeout; SELECT setting, unit, boot_val, context, source, pending_restart FROM pg_settings WHERE name = 'checkpoint_timeout';
Change it
ALTER SYSTEM SET checkpoint_timeout = '15min'; SELECT pg_reload_conf();
No restart: reload with SELECT pg_reload_conf() or pg_ctl reload. It cannot be changed per session (context is sighup).
When to change it
Often raised to 15-30 minutes on write-heavy servers to cut full-page-write volume, together with max_wal_size.
What can go wrong
Longer intervals mean longer crash recovery.
Questions about checkpoint_timeout
What is the default value of checkpoint_timeout in PostgreSQL?
5min. 5min (PostgreSQL 18).
Does changing checkpoint_timeout require a restart?
No. No restart: reload with SELECT pg_reload_conf() or pg_ctl reload. It cannot be changed per session (context is sighup).
When should I change checkpoint_timeout?
Often raised to 15-30 minutes on write-heavy servers to cut full-page-write volume, together with max_wal_size.
Back to all PostgreSQL settings, or check the PostgreSQL manual for every option.
Check checkpoint_timeout on your own server
SQLly runs the query above against PostgreSQL and the other engines in this reference, from one desktop app on macOS, Windows and Linux.