forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
211 lines
27 KiB
HTML
211 lines
27 KiB
HTML
<a name="EN-US_TOPIC_0000001510400885"></a><a name="EN-US_TOPIC_0000001510400885"></a>
|
|
|
|
<h1 class="topictitle1">Restoration Control Functions</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a78194911c99d466594d0111564a28271">Restoration control functions provide information about the status of standby nodes. These functions may be executed both during restoration and in normal running.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section1945673612542"><h4 class="sectiontitle">pg_is_in_recovery()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a99624fe7402e48daab7a1543dc5eb076">Description: Returns <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b12393639393748">true</strong> if restoration is still in progress.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a79ffc5365c92480cbe1e4ead688929c8">Return type: bool</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p928225514384">Example:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_screen159567248396"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">pg_is_in_recovery</span><span class="p">();</span>
|
|
<span class="w"> </span><span class="n">pg_is_in_recovery</span>
|
|
<span class="c1">-------------------</span>
|
|
<span class="w"> </span><span class="n">f</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section8235113543"><h4 class="sectiontitle">pg_last_xlog_receive_location()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_ab34d44ea7e364aabaf8f66758ef723f1">Description: Gets the last transaction log location received and synchronized to disk by streaming replication. While streaming replication is in progress, this will increase monotonically. If restoration has completed, then this value will remain static at the value of the last WAL record received and synchronized to disk during restoration. If streaming replication is disabled or if not yet started, the function return will return <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b93874065393748">NULL</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a618391292845413fa1cd400a4e94b8f4">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p141704054117">Example:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_screen7610181410417"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">pg_last_xlog_receive_location</span><span class="p">();</span>
|
|
<span class="w"> </span><span class="n">pg_last_xlog_receive_location</span>
|
|
<span class="c1">-------------------------------</span>
|
|
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section1257721319578"><h4 class="sectiontitle">pg_last_xlog_replay_location()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_ac20564e980404254aae62259bf241ada">Description: Gets last transaction log location replayed during restoration. If restoration is still in progress, this will increase monotonically. If restoration has completed, then this value will remain static at the value of the last WAL record received during that restoration. When the server has been started normally without restoration, the function returns <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b142066080593748">NULL</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_aeb86eb9c9a1b41558665401b14391c78">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p5275171604417">Example:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_screen2029123217444"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">pg_last_xlog_replay_location</span><span class="p">();</span>
|
|
<span class="w"> </span><span class="n">pg_last_xlog_replay_location</span>
|
|
<span class="c1">------------------------------</span>
|
|
<span class="w"> </span><span class="mi">0</span><span class="o">/</span><span class="mi">2</span><span class="n">B16530</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section1834062517575"><h4 class="sectiontitle">pg_last_xact_replay_timestamp()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_adac9b704ead948099000b3a9947c881b">Description: Gets the timestamp of last transaction replayed during restoration. This is the time to commit a transaction or abort a WAL record on the primary node. If no transactions have been replayed during restoration, this function will return <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b140303711293748">NULL</strong>. Otherwise, if restoration is still in progress, this will increase monotonically. If restoration has completed, then this value will remain static at the value of the last WAL record received during that restoration. If the server normally starts without manual intervention, this function will return <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b102208337693748">NULL</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a5d75db999ca143e4a9fe4f3e6d98f4c7">Return type: timestamp with time zone</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a25f8c5f34c5d4210b50e9ffb8c7b4a5b">Restoration control functions control restoration processes. These functions may be executed only during restoration.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1724861094517">Example:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_screen937213230454"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">pg_last_xact_replay_timestamp</span><span class="p">();</span>
|
|
<span class="w"> </span><span class="n">pg_last_xact_replay_timestamp</span>
|
|
<span class="c1">-------------------------------</span>
|
|
<span class="w"> </span><span class="mi">2023</span><span class="o">-</span><span class="mi">01</span><span class="o">-</span><span class="mi">04</span><span class="w"> </span><span class="mi">07</span><span class="p">:</span><span class="mi">03</span><span class="p">:</span><span class="mi">08</span><span class="p">.</span><span class="mi">098024</span><span class="o">+</span><span class="mi">00</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section5160103645714"><h4 class="sectiontitle">pg_is_xlog_replay_paused()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a40abd55ed15546539630f3a2ca15b283">Description: Returns <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b204672557693748">true</strong> if restoration is paused.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a1d64b941954a4b92b3c1264e74f3d6cf">Return type: bool</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section0225125619571"><h4 class="sectiontitle">pg_xlog_replay_pause()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_aef4dfdc3d47048f391a0492a7cf05663">Description: Pauses restoration immediately.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a0ea211e6c6b646349804cbaf619f28b5">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section1337514169582"><h4 class="sectiontitle">pg_xlog_replay_resume()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_a1168c62387a64a7f9ef00527c4a0bded">Description: Restarts restoration if it was paused.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p720921591313">While restoration is paused, no further database changes are applied. In hot standby mode, all new queries will see the same consistent snapshot of the database, and no further query conflicts will be generated until restoration is resumed.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p102091215181313">If streaming replication is disabled, the paused state may continue indefinitely without problem. While streaming replication is in progress, WAL records will continue to be received, which will eventually fill available disk space. This progress depends on the duration of the pause, the rate of WAL generation, and available disk space.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_aae2266dfd4fc4df58e3000f709c100ba">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section13579284584"><h4 class="sectiontitle">pg_xlog_replay_completion()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1466274119455">Description: Displays the progress of xlog redo on the current DN.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1420071505816">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p115213220511">Example:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_screen15715135225218"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_xlog_replay_completion</span><span class="p">();</span>
|
|
<span class="w"> </span><span class="n">replay_start</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">replay_current</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">replay_end</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">replay_percent</span>
|
|
<span class="c1">--------------+----------------+------------+----------------</span>
|
|
<span class="w"> </span><span class="mi">0</span><span class="o">/</span><span class="mi">2</span><span class="n">ACAB80</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="o">/</span><span class="mi">2</span><span class="n">B16530</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="o">/</span><span class="mi">4</span><span class="n">F62B090</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="o">%</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p14662134115452">The following information is returned:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_table3134174817461" frame="border" border="1" rules="all"><caption><b>Table 1 </b>pg_xlog_replay_completion() columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row14135248104614"><th align="left" class="cellrowborder" valign="top" width="26.090000000000003%" id="mcps1.3.9.7.2.4.1.1"><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1135248124618">Column</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.11%" id="mcps1.3.9.7.2.4.1.2"><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p113518483461">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.8%" id="mcps1.3.9.7.2.4.1.3"><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p191354487467">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row1213514487464"><td class="cellrowborder" valign="top" width="26.090000000000003%" headers="mcps1.3.9.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p185613184813">replay_start</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.11%" headers="mcps1.3.9.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p656114154814">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.8%" headers="mcps1.3.9.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p556119164813">Start LSN of xlog redo</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row121351948114612"><td class="cellrowborder" valign="top" width="26.090000000000003%" headers="mcps1.3.9.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p11561131184811">replay_current</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.11%" headers="mcps1.3.9.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p17561151124816">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.8%" headers="mcps1.3.9.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1956112116488">LSN of the current replay of xlog redo</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row313544817466"><td class="cellrowborder" valign="top" width="26.090000000000003%" headers="mcps1.3.9.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p35611219486">replay_end</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.11%" headers="mcps1.3.9.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p2561141174814">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.8%" headers="mcps1.3.9.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1656119112484">Maximum LSN that requires xlog redo</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row9135184817461"><td class="cellrowborder" valign="top" width="26.090000000000003%" headers="mcps1.3.9.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p8561119489">replay_percent</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.11%" headers="mcps1.3.9.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p756131124812">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.8%" headers="mcps1.3.9.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p15612112487">Completion percentage of xlog redo</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section3726164310580"><h4 class="sectiontitle">pg_data_sync_from_dummy_completion()</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p17915194517459">Description: Displays the progress of data page file synchronization during the failover on the current DN.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1762213245915">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1386383319537">Example:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_screen1341474613537"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_data_sync_from_dummy_completion</span><span class="p">();</span>
|
|
<span class="w"> </span><span class="n">start_index</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">current_index</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">total_index</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">sync_percent</span>
|
|
<span class="c1">-------------+---------------+-------------+--------------</span>
|
|
<span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">100</span><span class="o">%</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p11939201184918">The following information is returned:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_table1593921104918" frame="border" border="1" rules="all"><caption><b>Table 2 </b>pg_data_sync_from_dummy_completion() columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row1593971115495"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.10.7.2.4.1.1"><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p13939151144911">Column</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.10.7.2.4.1.2"><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p8939611194910">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.10.7.2.4.1.3"><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1939121174915">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row1693941144915"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1328815568490">start_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1828895614911">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p20288956154918">Start LSN of data page file synchronization</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row209402114497"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p102881356124911">current_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p5288165619493">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p32887563496">Current LSN of data page file synchronization</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row994071119495"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p9288165618492">total_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p13288125611490">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p3289656134916">Maximum LSN of data page file synchronization</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_row16940141117494"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p122892560494">sync_percent</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p182891565493">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.10.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p112891556184912">Completion percentage of data page files</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section1870715835818"><h4 class="sectiontitle">gs_roach_stop_backup(backupid text)</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p685081781217">Description: Stops a backup started by the internal backup tool GaussRoach and returns the position where the current log is inserted. This function is similar to <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b156768494393748">pg_stop_backup</strong>, but is more lightweight.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p685021721213">Return type: text</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section143467925915"><h4 class="sectiontitle">gs_roach_enable_delay_ddl_recycle(backupid name)</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p9429219171214">Description: Enables DDL delay and returns the log position of the enabling point. This function is similar to <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b210497213293748">pg_enable_delay_ddl_recycle</strong>, but is more lightweight. In addition, this function allows you to enable DDL delay for multiple backups.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p142951931220">Return type: text</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section1912122135920"><h4 class="sectiontitle">gs_roach_disable_delay_ddl_recycle(backupid text)</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p19995639201414">Description: Disables DDL delay, returns the logs for which DDL delay takes effect, and deletes the physical files of the column-store tables that have been deleted by the user. This function is similar to <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b8664417693748">pg_enable_delay_ddl_recycle</strong>, but is more lightweight. In addition, this function allows you to disable DDL delay for multiple backups.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p11368142021213">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section18426133611593"><h4 class="sectiontitle">gs_roach_switch_xlog(request_ckpt bool)</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p334892131218">Description: Switches the currently used log segment file and returns the position of the segment log. If the value of <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b6080827293748">request_ckpt</strong> is <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b39407202493748">true</strong>, a full check point is triggered.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p7348162118127">Return type: text</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_section11130148185910"><h4 class="sectiontitle">pg_resume_bkp_flag(backupid name)</h4><p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p1074642215126">Description: Resumes the delay xlog flag from a specified backup and returns <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b85076623193748">start_backup_flag boolean</strong>, <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b73717673593748">to_delay boolean</strong>, <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b66663222493748">ddl_delay_recycle_ptr text</strong>, and <strong id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_b93631847293748">rewind_time text</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001510400885__en-us_topic_0000001444979614_p67465228123">Return type: record</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0056.html">Backup and Restoration Control Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|