forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
29 lines
3.3 KiB
HTML
29 lines
3.3 KiB
HTML
<a name="EN-US_TOPIC_0000001099150852"></a><a name="EN-US_TOPIC_0000001099150852"></a>
|
|
|
|
<h1 class="topictitle1">CHECKPOINT</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001099150852__s917a3789243a44fe90ba8fecd69c2fb1"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001099150852__af9327feb7959426dace331755a30dea1">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.</p>
|
|
<p id="EN-US_TOPIC_0000001099150852__aec90fc6e6d8047ef9560e9af15ea26de"><strong id="EN-US_TOPIC_0000001099150852__b59233592115054">CHECKPOINT</strong> forces a transaction log checkpoint. By default, WALs periodically specify checkpoints in a transaction log. You may use <strong id="EN-US_TOPIC_0000001099150852__b63340282115054">gs_guc</strong> to specify run-time parameters <strong id="EN-US_TOPIC_0000001099150852__b33191629115054">checkpoint_segments</strong> and <strong id="EN-US_TOPIC_0000001099150852__b30289211115054">checkpoint_timeout</strong> to adjust the atomized checkpoint intervals.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001099150852__sc71f019b5f904cf7829d18723a4c1fef"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0000001099150852__ul1191111547244"><li id="EN-US_TOPIC_0000001099150852__li19912145413245">Only a system administrator has the permission to call <strong id="EN-US_TOPIC_0000001099150852__b116857232318">CHECKPOINT</strong>.</li><li id="EN-US_TOPIC_0000001099150852__li1272935712410"><strong id="EN-US_TOPIC_0000001099150852__b9670205993410">CHECKPOINT</strong> forces an immediate checkpoint when the related command is issued, without waiting for a regular checkpoint scheduled by the system.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001099150852__s5e5542d609234c11a660b757189a8c01"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001099150852__s9e9f754dee844e8d964a97c193800020"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">CHECKPOINT</span><span class="p">;</span><span class="w"></span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001099150852__sbdf9ed2bfd134fa088b66414c1f15552"><h4 class="sectiontitle">Parameter Description</h4><p id="EN-US_TOPIC_0000001099150852__a2e73be8b0a23431ebe78d621b5408353">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001099150852__sc3bca8afb5f645ac82177e0aba9e3bd4"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001099150852__p17773524167">Set a checkpoint.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001099150852__s2c8b15dafb87450bb5f53278239d021b"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">CHECKPOINT</span><span class="p">;</span><span class="w"></span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0254.html">TCL Syntax</a></div>
|
|
</div>
|
|
</div>
|
|
|