]> begriffs open source - ai-pg/blob - full-docs/txt/sql-checkpoint.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-checkpoint.txt
1
2 CHECKPOINT
3
4    CHECKPOINT — force a write-ahead log checkpoint
5
6 Synopsis
7
8 CHECKPOINT
9
10 Description
11
12    A checkpoint is a point in the write-ahead log sequence at which all
13    data files have been updated to reflect the information in the log. All
14    data files will be flushed to disk. Refer to Section 28.5 for more
15    details about what happens during a checkpoint.
16
17    The CHECKPOINT command forces an immediate checkpoint when the command
18    is issued, without waiting for a regular checkpoint scheduled by the
19    system (controlled by the settings in Section 19.5.2). CHECKPOINT is
20    not intended for use during normal operation.
21
22    If executed during recovery, the CHECKPOINT command will force a
23    restartpoint (see Section 28.5) rather than writing a new checkpoint.
24
25    Only superusers or users with the privileges of the pg_checkpoint role
26    can call CHECKPOINT.
27
28 Compatibility
29
30    The CHECKPOINT command is a PostgreSQL language extension.