blob: 76eb273dea2e668f3d16740826cb8f89c88b359f [file] [log] [blame]
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.16 2008/11/14 10:22:45 petere Exp $ -->
<refentry id="sql-checkpoint">
<refentrytitle id="sql-checkpoint-title">CHECKPOINT</refentrytitle>
<refmiscinfo>SQL - Language Statements</refmiscinfo>
<refpurpose>force a transaction log checkpoint</refpurpose>
<indexterm zone="sql-checkpoint">
Write-Ahead Logging (WAL) puts a checkpoint in the transaction log
every so often. (To adjust the automatic checkpoint interval, see
the run-time configuration options <xref linkend="guc-checkpoint-segments">
and <xref linkend="guc-checkpoint-timeout">.) The
<command>CHECKPOINT</command> command forces an immediate
checkpoint when the command is issued, without waiting for a
scheduled checkpoint.
A checkpoint is a point in the transaction log sequence at which
all data files have been updated to reflect the information in the
log. All data files will be flushed to disk. Refer to
<xref linkend="wal"> for more information about the WAL system.
Only superusers can call <command>CHECKPOINT</command>. The command is
not intended for use during normal operation.
The <command>CHECKPOINT</command> command is a
<productname>PostgreSQL</productname> language extension.