Help Center > > Developer Guide> SQL Reference> SQL Syntax> CHECKPOINT

CHECKPOINT

Updated at:Mar 13, 2020 GMT+08:00

Function

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 a disk.

CHECKPOINT forces a transaction log checkpoint. By default, WALs periodically specify checkpoints in a transaction log. You may use gs_guc to specify run-time parameters checkpoint_segments and checkpoint_timeout to adjust the atomized checkpoint intervals.

Precautions

  • Only a system administrator has the permission to call CHECKPOINT.
  • CHECKPOINT forces an immediate checkpoint when the related command is issued, without waiting for a regular checkpoint scheduled by the system.

Syntax

CHECKPOINT;

Parameter Description

None

Examples

1
2
-- Set a checkpoint:
CHECKPOINT;

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel