CHECKPOINT(7)
π CHECKPOINT β like, the manual page (section 7, bestie) π
okay so welcome to CHECKPOINT(7), the glow-up edition. this is a PostgreSQL thing, section 7, and we're gonna talk about forcing a write-ahead log checkpoint. yes it's as iconic as it sounds. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
CHECKPOINT β force a write-ahead log checkpoint π
β¨ SYNOPSIS β¨
CHECKPOINT
that's it. that's the whole vibe. one word, no arguments, no options. she's low maintenance and highkey powerful π
β¨ DESCRIPTION β¨
okay so first things first, what even is a checkpoint? bestie. a checkpoint is a point in the write-ahead log sequence at which all data files have been updated to reflect the information in the log. and then β and this is the part that matters β all data files will be flushed to disk. every single one. the whole squad. π¦
if you wanna know more about what actually goes down during a checkpoint, go read Section 28.5. it's giving required reading, ngl.
so what does the CHECKPOINT command do? it forces an immediate checkpoint right when the command is issued β it does not wait around for a regular checkpoint that the system would've scheduled on its own (that scheduling is controlled by the settings in Section 19.5.2). so yeah, you're basically skipping the line at the club. β¨
β οΈ real talk though: CHECKPOINT is not intended for use during normal operation. it's not a little everyday treat. it's a special-occasion thing. don't be out here just running it for funsies.
and here's a lil plot twist for you π β if CHECKPOINT gets executed during recovery, it won't write a new checkpoint at all. instead it'll force a restartpoint (again, see Section 28.5). different name, different energy, same section, iykyk.
oh and permissions check π β only superusers, or users with the privileges of the pg_checkpoint role, can call CHECKPOINT. so if you try and it says no, that's why, bestie. it's not personal, it's privilege. π
β¨ COMPATIBILITY β¨
CHECKPOINT is a PostgreSQL language extension. so it's not standard SQL, it's our thing. she's built different, literally. π
and that's the whole page, bestie!! this was PostgreSQL 18.6, dated 2026, and it's the CHECKPOINT(7) manual page. you ate. go flush something. π§π
π¦ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 Β· PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 Β· PostgreSQL
- arch rolling: postgresql 18.6-4 Β· PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 Β· PostgreSQL
- fedora 43: postgresql 18.6-1.fc43 Β· PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 Β· PostgreSQL
- fedora 44: postgresql 18.6-1.fc44 Β· PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-client-18 18.6-0ubuntu0.26.04.1 Β· PostgreSQL
- ubuntu stonking: postgresql-client-18 18.6-3build2 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms