バージョンごとのドキュメント一覧

CHECKPOINT

CHECKPOINT <refpurpose>force a write-ahead log checkpoint</refpurpose> — 先行書き込みログのチェックポイントを強制的に実行する

概要

CHECKPOINT

説明

<title>Description</title>

A checkpoint is a point in the write-ahead 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-configuration"/> for more details about what happens during a checkpoint. チェックポイントとは、ログ内の情報を反映するために全てのデータファイルを更新する、先行書き込みログのある一時点を指します。 チェックポイントによって、全てのデータファイルがディスクに書き出されます。 チェックポイントの間に何が起きるかについては、30.5を参照してください。

The <command>CHECKPOINT</command> command forces an immediate checkpoint when the command is issued, without waiting for a regular checkpoint scheduled by the system (controlled by the settings in <xref linkend="runtime-config-wal-checkpoints"/>). <command>CHECKPOINT</command> is not intended for use during normal operation. CHECKPOINTコマンドは、コマンドが発行された時、(20.5.2によって制御される)システムによって予定された通常のチェックポイントを待たず、即座に強制的にチェックポイント処理を行います。 通常の運用時にCHECKPOINTが使用されることは想定していません。

If executed during recovery, the <command>CHECKPOINT</command> command will force a restartpoint (see <xref linkend="wal-configuration"/>) rather than writing a new checkpoint. リカバリ中に実行された場合、CHECKPOINTは新しくチェックポイントを書き出さずにリスタートポイント(30.5参照)を強制します。

Only superusers or users with the privileges of the <link linkend="predefined-roles-table"><literal>pg_checkpoint</literal></link> role can call <command>CHECKPOINT</command>. CHECKPOINTを呼び出すことができるのは、スーパーユーザまたはpg_checkpointロールの権限を持つユーザのみです。

互換性

<title>Compatibility</title>

The <command>CHECKPOINT</command> command is a <productname>PostgreSQL</productname> language extension. CHECKPOINTコマンドは、PostgreSQLの拡張です。