mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-06 09:57:02 +02:00
e81c138e18
Standard English uses "may", "can", and "might" in different ways: may - permission, "You may borrow my rake." can - ability, "I can lift that log." might - possibility, "It might rain today." Unfortunately, in conversational English, their use is often mixed, as in, "You may use this variable to do X", when in fact, "can" is a better choice. Similarly, "It may crash" is better stated, "It might crash".
59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.15 2007/01/31 23:26:02 momjian Exp $ -->
|
|
|
|
<refentry id="sql-checkpoint">
|
|
<refmeta>
|
|
<refentrytitle id="sql-checkpoint-title">CHECKPOINT</refentrytitle>
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
<refname>CHECKPOINT</refname>
|
|
<refpurpose>force a transaction log checkpoint</refpurpose>
|
|
</refnamediv>
|
|
|
|
<indexterm zone="sql-checkpoint">
|
|
<primary>CHECKPOINT</primary>
|
|
</indexterm>
|
|
|
|
<refsynopsisdiv>
|
|
<synopsis>
|
|
CHECKPOINT
|
|
</synopsis>
|
|
</refsynopsisdiv>
|
|
|
|
<refsect1>
|
|
<title>Description</title>
|
|
|
|
<para>
|
|
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.
|
|
</para>
|
|
|
|
<para>
|
|
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.
|
|
</para>
|
|
|
|
<para>
|
|
Only superusers can call <command>CHECKPOINT</command>. The command is
|
|
not intended for use during normal operation.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1>
|
|
<title>Compatibility</title>
|
|
|
|
<para>
|
|
The <command>CHECKPOINT</command> command is a
|
|
<productname>PostgreSQL</productname> language extension.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|