aboutsummaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/checkpoint.sgml
blob: 83df9e6537f58682f085c4570c5cd763f960aeb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/checkpoint.sgml,v 1.2 2001/01/24 21:56:23 petere Exp $ -->

<refentry id="sql-checkpoint">
 <docinfo>
  <date>2001-01-24</date>
 </docinfo>

 <refmeta>
  <refentrytitle id="sql-checkpoint-title">CHECKPOINT</refentrytitle>
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 </refmeta>

 <refnamediv>
  <refname>CHECKPOINT</refname>
  <refpurpose>Force transaction log checkpoint</refpurpose>
 </refnamediv>

 <refsynopsisdiv>
<synopsis>
CHECKPOINT
</synopsis>
 </refsynopsisdiv>

 <refsect1>
  <title>Description</title>

  <para>
   Write-Ahead Logging (WAL) puts a checkpoint in the transaction log
   every 300 seconds by default.  (This may be changed by the run-time
   configuration option <parameter>CHECKPOINT_TIMEOUT</parameter>.)
   The <command>CHECKPOINT</command> command forces a checkpoint at
   the point at which the command is issued.  The next automatic
   checkpoint will still happen after the original cycle expires.
  </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 the
   <citetitle>PostgreSQL Administrator's Guide</citetitle> for more
   information about the WAL system.
  </para>
 </refsect1>

 <refsect1>
  <title>See Also</title>

  <para>
   <citetitle>PostgreSQL Administrator's Guide</citetitle>
  </para>
 </refsect1>

 <refsect1>
  <title>Compatibility</title>

  <para>
   The <command>CHECKPOINT</command> command is a
   <productname>PostgreSQL</productname> language extension.
  </para>
 </refsect1>
</refentry>