1
<!-- doc/src/sgml/ref/checkpoint.sgml -->
3
<refentry id="sql-checkpoint">
5
<refentrytitle>CHECKPOINT</refentrytitle>
6
<manvolnum>7</manvolnum>
7
<refmiscinfo>SQL - Language Statements</refmiscinfo>
11
<refname>CHECKPOINT</refname>
12
<refpurpose>force a transaction log checkpoint</refpurpose>
15
<indexterm zone="sql-checkpoint">
16
<primary>CHECKPOINT</primary>
26
<title>Description</title>
29
A checkpoint is a point in the transaction log sequence at which
30
all data files have been updated to reflect the information in the
31
log. All data files will be flushed to disk. Refer to
32
<xref linkend="wal-configuration"> for more details about what happens
37
The <command>CHECKPOINT</command> command forces an immediate
38
checkpoint when the command is issued, without waiting for a
39
regular checkpoint scheduled by the system (controlled by the settings in
40
<xref linkend="runtime-config-wal-checkpoints">).
41
<command>CHECKPOINT</command> is not intended for use during normal
46
If executed during recovery, the <command>CHECKPOINT</command> command
47
will force a restartpoint (see <xref linkend="wal-configuration">)
48
rather than writing a new checkpoint.
52
Only superusers can call <command>CHECKPOINT</command>.
57
<title>Compatibility</title>
60
The <command>CHECKPOINT</command> command is a
61
<productname>PostgreSQL</productname> language extension.