]> begriffs open source - ai-pg/blob - full-docs/html/sql-checkpoint.html
Include links to all subsection html pages, with shorter paths too
[ai-pg] / full-docs / html / sql-checkpoint.html
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>CHECKPOINT</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="sql-call.html" title="CALL" /><link rel="next" href="sql-close.html" title="CLOSE" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">CHECKPOINT</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="sql-call.html" title="CALL">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="sql-commands.html" title="SQL Commands">Up</a></td><th width="60%" align="center">SQL Commands</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="sql-close.html" title="CLOSE">Next</a></td></tr></table><hr /></div><div class="refentry" id="SQL-CHECKPOINT"><div class="titlepage"></div><a id="id-1.9.3.49.1" class="indexterm"></a><div class="refnamediv"><h2><span class="refentrytitle">CHECKPOINT</span></h2><p>CHECKPOINT — force a write-ahead log checkpoint</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
3 CHECKPOINT
4 </pre></div><div class="refsect1" id="id-1.9.3.49.5"><h2>Description</h2><p>
5    A checkpoint is a point in the write-ahead log sequence at which
6    all data files have been updated to reflect the information in the
7    log.  All data files will be flushed to disk.  Refer to
8    <a class="xref" href="wal-configuration.html" title="28.5. WAL Configuration">Section 28.5</a> for more details about what happens
9    during a checkpoint.
10   </p><p>
11    The <code class="command">CHECKPOINT</code> command forces an immediate
12    checkpoint when the command is issued, without waiting for a
13    regular checkpoint scheduled by the system (controlled by the settings in
14    <a class="xref" href="runtime-config-wal.html#RUNTIME-CONFIG-WAL-CHECKPOINTS" title="19.5.2. Checkpoints">Section 19.5.2</a>).
15    <code class="command">CHECKPOINT</code> is not intended for use during normal
16    operation.
17   </p><p>
18    If executed during recovery, the <code class="command">CHECKPOINT</code> command
19    will force a restartpoint (see <a class="xref" href="wal-configuration.html" title="28.5. WAL Configuration">Section 28.5</a>)
20    rather than writing a new checkpoint.
21   </p><p>
22    Only superusers or users with the privileges of
23    the <a class="xref" href="predefined-roles.html#PREDEFINED-ROLE-PG-CHECKPOINT">pg_checkpoint</a>
24    role can call <code class="command">CHECKPOINT</code>.
25   </p></div><div class="refsect1" id="id-1.9.3.49.6"><h2>Compatibility</h2><p>
26    The <code class="command">CHECKPOINT</code> command is a
27    <span class="productname">PostgreSQL</span> language extension.
28   </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sql-call.html" title="CALL">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="sql-commands.html" title="SQL Commands">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sql-close.html" title="CLOSE">Next</a></td></tr><tr><td width="40%" align="left" valign="top">CALL </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> CLOSE</td></tr></table></div></body></html>