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>
319 lines
44 KiB
HTML
319 lines
44 KiB
HTML
<a name="EN-US_TOPIC_0000001145510895"></a><a name="EN-US_TOPIC_0000001145510895"></a>
|
|
|
|
<h1 class="topictitle1">Backup and Restoration Control Functions</h1>
|
|
<div id="body1553151203303"><div class="section" id="EN-US_TOPIC_0000001145510895__s91120be7b8d249ce95040c1b55c9f08e"><h4 class="sectiontitle">Backup Control Functions</h4><p id="EN-US_TOPIC_0000001145510895__a6fd05cf43b324559b1722eeacde9f810">Backup control functions help online backup.</p>
|
|
<ul id="EN-US_TOPIC_0000001145510895__u61068aa1bc244a848469f7f90301ab60"><li id="EN-US_TOPIC_0000001145510895__l282908a61016402e869680532301cb49">pg_create_restore_point(name text)<p id="EN-US_TOPIC_0000001145510895__aa42dd9aa1f5e4353861d28c6f1f8ad74"><a name="EN-US_TOPIC_0000001145510895__l282908a61016402e869680532301cb49"></a><a name="l282908a61016402e869680532301cb49"></a>Description: Creates a named point for performing the restore operation (restricted to system administrators).</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__afdd125b250304cef8399cc89bbb1ad0c">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__acb73f60ea1794570bdedb3d560bea9c4">Note: <strong id="EN-US_TOPIC_0000001145510895__en-us_topic_0058965547_b8423527069582">pg_create_restore_point</strong> creates a named transaction log record that can be used as a restoration target, and returns the corresponding transaction log location. The given name can then be used with <strong id="EN-US_TOPIC_0000001145510895__en-us_topic_0058965547_b842352706114137">recovery_target_name</strong> to specify the point up to which restoration will proceed. Avoid creating multiple restoration points with the same name, since restoration will stop at the first one whose name matches the restoration target.</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__l9428d6ea73ef466a9d94dc90ca95e2f0">pg_current_xlog_location()<p id="EN-US_TOPIC_0000001145510895__a43331ed17c3d4a4b8d4fea04457c58d9"><a name="EN-US_TOPIC_0000001145510895__l9428d6ea73ef466a9d94dc90ca95e2f0"></a><a name="l9428d6ea73ef466a9d94dc90ca95e2f0"></a>Description: Obtains the write position of the current transaction log.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a2ec56da05b6f494f8b0ff5a32b704482">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__abdb54a148b734bc69268e68f91ee7e09">Note: <strong id="EN-US_TOPIC_0000001145510895__b155801751132713">pg_current_xlog_location</strong> displays the write position of the current transaction log in the same format as those of the previous functions. Read-only operations do not require rights of the system administrator.</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__ldee16ca5919c4d0490172497bc701073">pg_current_xlog_insert_location()<p id="EN-US_TOPIC_0000001145510895__a43e39113e176446786574e520ffb39cb"><a name="EN-US_TOPIC_0000001145510895__ldee16ca5919c4d0490172497bc701073"></a><a name="ldee16ca5919c4d0490172497bc701073"></a>Description: Obtains the insert position of the current transaction log.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a75e0e009222d439391db369c6fcea610">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a3e4a79118fa946ee84934de67c22cc43">Note: <strong id="EN-US_TOPIC_0000001145510895__en-us_topic_0058965547_b842352706105949">pg_current_xlog_insert_location</strong> displays the insert position of the current transaction log. The insertion point is the logical end of the transaction log at any instant, while the write location is the end of what has been written out from the server's internal buffers. The write position is the end that can be detected externally from the server. This operation can be performed to archive only some of completed transaction log files. The insert position is mainly used for commissioning the server. Read-only operations do not require rights of the system administrator.</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__l25e071a1abe94847b9b5fbcba6c1a5a5">pg_start_backup(label text [, fast boolean ])<p id="EN-US_TOPIC_0000001145510895__afbf5e69f32164b0a849e77092cb1bcb3"><a name="EN-US_TOPIC_0000001145510895__l25e071a1abe94847b9b5fbcba6c1a5a5"></a><a name="l25e071a1abe94847b9b5fbcba6c1a5a5"></a>Description: Starts executing online backup (restricted to system administrators or replication roles).</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a547609e1fe45437d9891fa6e3fca0c83">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__adc1560808c7d41b68fc33e4d8f51dd4a">Note: <strong id="EN-US_TOPIC_0000001145510895__b66811350306">pg_start_backup</strong> receives a user-defined backup label (usually the name of the position where the backup dump file is stored). This function writes a backup label file to the data directory of the database cluster and then returns the starting position of backed up transaction logs in text mode.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001145510895__s50eae18c25e04412a2083860b7f6dadb"><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_start_backup</span><span class="p">(</span><span class="s1">'label_goes_here'</span><span class="p">);</span><span class="w"></span>
|
|
<span class="w"> </span><span class="n">pg_start_backup</span><span class="w"></span>
|
|
<span class="c1">-----------------</span>
|
|
<span class="w"> </span><span class="mi">0</span><span class="o">/</span><span class="mi">3000020</span><span class="w"></span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span><span class="w"></span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__labdb609f763d4b7ab5a43e2820d812f2">pg_stop_backup()<p id="EN-US_TOPIC_0000001145510895__a3fa6a239d70e4864a3b347dd9d59bc95"><a name="EN-US_TOPIC_0000001145510895__labdb609f763d4b7ab5a43e2820d812f2"></a><a name="labdb609f763d4b7ab5a43e2820d812f2"></a>Description: Completes online backup (restricted to system administrators or replication roles).</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a5762498ed4b7444dbdd56c343210fde9">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a44839471a1294fcf932fbdd1a4f5954b">Note: <strong id="EN-US_TOPIC_0000001145510895__b13708172723114">pg_stop_backup</strong> deletes the label file created by <strong id="EN-US_TOPIC_0000001145510895__b67091827143119">pg_start_backup</strong> and creates a backup history file in the transaction log archive area. The history file includes the label given to <strong id="EN-US_TOPIC_0000001145510895__b84235270695122">pg_start_backup</strong>, the starting and ending transaction log locations for the backup, and the starting and ending times of the backup. The return value is the backup's ending transaction log location. After the ending position is calculated, the insert position of the current transaction log automatically goes ahead to the next transaction log file. This way, the ended transaction log file can be immediately archived so that backup is complete.</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__lac3db30891634379a27d546801154714">pg_switch_xlog()<p id="EN-US_TOPIC_0000001145510895__a5c16c2e3e6d04890882bcda4aa502b08"><a name="EN-US_TOPIC_0000001145510895__lac3db30891634379a27d546801154714"></a><a name="lac3db30891634379a27d546801154714"></a>Description: Switches to a new transaction log file (restricted to system administrators).</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a319ee323815e40d99b5bc21fc0113d2e">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__ada2a9a1e5ec34933bbaeca6314205b81">Note: <strong id="EN-US_TOPIC_0000001145510895__b1293923103714">pg_switch_xlog</strong> moves to the next transaction log file so that the current log file can be archived (if continuous archive is used). The return value is the ending transaction log location + 1 within the just-completed transaction log file. If there has been no transaction log activity since the last transaction log switchover, <strong id="EN-US_TOPIC_0000001145510895__b842352706113910">pg_switch_xlog</strong> will do nothing but return the start location of the transaction log file currently in use.</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__l30c1d727995745c8a0cfecdeddcb52d5">pg_xlogfile_name(location text)<p id="EN-US_TOPIC_0000001145510895__aafdebe38aa6544349177e70a85791762"><a name="EN-US_TOPIC_0000001145510895__l30c1d727995745c8a0cfecdeddcb52d5"></a><a name="l30c1d727995745c8a0cfecdeddcb52d5"></a>Description: Converts the position string in a transaction log to a file name.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a9dc0e92f48a245aa868cd84b65f1072f">Return type: text</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a3231297a16e3499e9643da08704af6d9">Note: <strong id="EN-US_TOPIC_0000001145510895__b842352706101427">pg_xlogfile_name</strong> extracts only the transaction log file name. If the given transaction log position is the transaction log file border, a transaction log file name will be returned for both the two functions. This is usually the desired behavior for managing transaction log archiving, since the preceding file is the last one that currently needs to be archived.</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__l43f81c7aa9e04f98965b2e13c70e6175">pg_xlogfile_name_offset(location text)<p id="EN-US_TOPIC_0000001145510895__a55ddabb032434706b9f68ceeba2153a5"><a name="EN-US_TOPIC_0000001145510895__l43f81c7aa9e04f98965b2e13c70e6175"></a><a name="l43f81c7aa9e04f98965b2e13c70e6175"></a>Description: Converts the position string in a transaction log to a file name and returns the byte offset in the file.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a9c9e770e881c476a982d376163b7f535">Return type: text, integer</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a99c667f0e9a64641983dbcbf87bdb544">Note: <strong id="EN-US_TOPIC_0000001145510895__b11753555123911">pg_xlogfile_name_offset</strong> can extract transaction log file names and byte offsets from the returned results of the preceding functions. For example:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001145510895__sdff39299c2d142b79de3dbe6a3ec9a0c"><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>
|
|
<span class="normal">6</span>
|
|
<span class="normal">7</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_xlogfile_name_offset</span><span class="p">(</span><span class="n">pg_stop_backup</span><span class="p">());</span><span class="w"></span>
|
|
<span class="n">NOTICE</span><span class="p">:</span><span class="w"> </span><span class="n">pg_stop_backup</span><span class="w"> </span><span class="n">cleanup</span><span class="w"> </span><span class="n">done</span><span class="p">,</span><span class="w"> </span><span class="n">waiting</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">required</span><span class="w"> </span><span class="n">WAL</span><span class="w"> </span><span class="n">segments</span><span class="w"> </span><span class="k">to</span><span class="w"> </span><span class="n">be</span><span class="w"> </span><span class="n">archived</span><span class="w"></span>
|
|
<span class="n">NOTICE</span><span class="p">:</span><span class="w"> </span><span class="n">pg_stop_backup</span><span class="w"> </span><span class="n">complete</span><span class="p">,</span><span class="w"> </span><span class="k">all</span><span class="w"> </span><span class="n">required</span><span class="w"> </span><span class="n">WAL</span><span class="w"> </span><span class="n">segments</span><span class="w"> </span><span class="n">have</span><span class="w"> </span><span class="n">been</span><span class="w"> </span><span class="n">archived</span><span class="w"></span>
|
|
<span class="w"> </span><span class="n">file_name</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">file_offset</span><span class="w"> </span>
|
|
<span class="c1">--------------------------+-------------</span>
|
|
<span class="mi">000000010000000000000003</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">272</span><span class="w"></span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span><span class="w"></span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__l5c00aaa39aa441e58ae36f5638de4acb">pg_xlog_location_diff(location text, location text)<p id="EN-US_TOPIC_0000001145510895__a5e59d8a450d84b26a741df11afe9a673"><a name="EN-US_TOPIC_0000001145510895__l5c00aaa39aa441e58ae36f5638de4acb"></a><a name="l5c00aaa39aa441e58ae36f5638de4acb"></a>Description: <strong id="EN-US_TOPIC_0000001145510895__b842352706101913">pg_xlog_location_diff</strong> calculates the difference in bytes between two transaction log locations.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__abf03b4aacfcb4299982e469ebafee3c6">Return type: numeric</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li67515412472">pg_cbm_tracked_location()<p id="EN-US_TOPIC_0000001145510895__p1877918364817"><a name="EN-US_TOPIC_0000001145510895__li67515412472"></a><a name="li67515412472"></a>Description: Queries for the LSN location parsed by CBM.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p35471354184817">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li1869321212504">pg_cbm_get_merged_file(startLSNArg text, endLSNArg text)<p id="EN-US_TOPIC_0000001145510895__p07861161512"><a name="EN-US_TOPIC_0000001145510895__li1869321212504"></a><a name="li1869321212504"></a>Description: Combines CBM files within the specified LSN range into one and returns the name of the combined file.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p14621105945018">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li183775201413">pg_cbm_get_changed_block(startLSNArg text, endLSNArg text)<p id="EN-US_TOPIC_0000001145510895__p4766921449"><a name="EN-US_TOPIC_0000001145510895__li183775201413"></a><a name="li183775201413"></a>Description: Combines CBM files within the specified LSN range into a table and return records of this table.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p595311233181">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p12957823121819">Note: The table columns include the start LSN, end LSN, tablespace OID, database OID, table relfilenode, table fork number, whether the table is deleted, whether the table is created, whether the table is truncated, number of pages in the truncated table, number of modified pages, and list of No. of modified pages.</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li43281611185319">pg_cbm_recycle_file(slotName name, targetLSNArg text)<p id="EN-US_TOPIC_0000001145510895__p5401348105512"><a name="EN-US_TOPIC_0000001145510895__li43281611185319"></a><a name="li43281611185319"></a>Description: Deletes the CBM files that are no longer used and returns the first LSN after the deletion. If <strong id="EN-US_TOPIC_0000001145510895__b108701417545">slotName</strong> is empty, <strong id="EN-US_TOPIC_0000001145510895__b2044544916380">targetLSNArg</strong> is used as the recycling point. During backup and DR, you need to specify a slot name due to parallelism. Record the <strong id="EN-US_TOPIC_0000001145510895__b204371513175613">targetLSNArg</strong> value of the task to the slot, traverse all backup slots, and find the smallest LSN as the recycling point.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p1410112820551">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li14348161912212">pg_cbm_force_track(targetLSNArg text,timeOut int)<p id="EN-US_TOPIC_0000001145510895__p2040213547229"><a name="EN-US_TOPIC_0000001145510895__li14348161912212"></a><a name="li14348161912212"></a>Description: Forcibly executes the CBM trace to the specified Xlog position and returns the Xlog position of the actual trace end point.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p43092569222">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li582110580478">pg_enable_delay_ddl_recycle()<p id="EN-US_TOPIC_0000001145510895__p1455531364817"><a name="EN-US_TOPIC_0000001145510895__li582110580478"></a><a name="li582110580478"></a>Description: Enables DDL delay and returns the Xlog position of the enabling point.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p35188195019">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li1093128184814">pg_disable_delay_ddl_recycle(barrierLSNArg text, isForce bool)<p id="EN-US_TOPIC_0000001145510895__p149285717483"><a name="EN-US_TOPIC_0000001145510895__li1093128184814"></a><a name="li1093128184814"></a>Description: Disables DDL delay and returns the Xlog range where DDL delay takes effect.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p7443141114197">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li1434114121916">pg_enable_delay_xlog_recycle()<p id="EN-US_TOPIC_0000001145510895__p105951017151918"><a name="EN-US_TOPIC_0000001145510895__li1434114121916"></a><a name="li1434114121916"></a>Description: Enables Xlog recycle delay.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p1632451011505">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li38527104920">pg_disable_delay_xlog_recycle()<p id="EN-US_TOPIC_0000001145510895__p131151650151919"><a name="EN-US_TOPIC_0000001145510895__li38527104920"></a><a name="li38527104920"></a>Description: Disables Xlog recycle delay.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p11437164934920">Return type: void</p>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="EN-US_TOPIC_0000001145510895__ul10760210604"><li id="EN-US_TOPIC_0000001145510895__li1951019134111">pgxc_get_senders_catchup_time()<p id="EN-US_TOPIC_0000001145510895__p45793201410"><a name="EN-US_TOPIC_0000001145510895__li1951019134111"></a><a name="li1951019134111"></a>Description: Displays the catchup information of the currently active primary/standby instance sending thread on all DNs.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p116141933214">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p1471152413612">The following information is returned:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145510895__table3481051182" frame="border" border="1" rules="all"><caption><b>Table 1 </b>pgxc_get_senders_catchup_time() columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145510895__row2491351889"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.1.4.2.4.1.1"><p id="EN-US_TOPIC_0000001145510895__p72131035989">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.1.4.2.4.1.2"><p id="EN-US_TOPIC_0000001145510895__p42131035588">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.2.1.4.2.4.1.3"><p id="EN-US_TOPIC_0000001145510895__p9213435488">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145510895__row1849151982"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p1621423519814">node_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p192141935184">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p1921414355815">Node name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row6503519812"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p1221410355811">lwpid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p92157359810">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p152156351889">Current sender lwpid</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row05013512817"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p62158351486">local_role</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p421518354819">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p1221543517816">Local role</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row1550151583"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p1721615351487">peer_role</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p19216173512818">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p15216193518813">Peer role</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row55185188"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p1321653512817">state</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p82161235285">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p1121610351482">Current sender's replication status</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row5517514820"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p42176359811">sender</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p162179357816">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p521718354814">Current sender type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row115111516817"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p1821783510811">catchup_start</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p821712354815">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p152177351289">Startup time of a catchup task</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row1438592417817"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p821843517810">catchup_end</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p18218143518810">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p92187351885">End time of a catchup task</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row1830132344213"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p13471017184719">catchup_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p3482017134713">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p448181719474">Catchup task type, full or incremental</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row43912820420"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p1104181815477">catchup_bcm_filename</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p10104101819473">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p3104171854710">BCM file executed by the current catchup task</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row15651122920422"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p182552019154718">catchup_bcm_finished</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p14255111917477">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p12551219114712">Number of BCM files completed by a catchup task</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row74309302421"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p825562118474">catchup_bcm_total</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p92553218470">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p15255202174716">Total number of BCM files to be operated by a catchup task</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row122101631124218"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p8114133165010">catchup_percent</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p11114173335010">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p19114333165018">Completion percentage of a catchup task</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row79785314423"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p856734195018">catchup_remaining_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p1156534115019">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.2.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p656143415500">Estimated remaining time of a catchup task</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<div class="section" id="EN-US_TOPIC_0000001145510895__sa2aabe36eb8949cfac42cdd48e29cd78"><h4 class="sectiontitle">Restoration Control Functions</h4><p id="EN-US_TOPIC_0000001145510895__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>
|
|
<ul id="EN-US_TOPIC_0000001145510895__u82680dd4deb3412189289a7470f20cde"><li id="EN-US_TOPIC_0000001145510895__l075959ec6e174dec83152baff1133bea">pg_is_in_recovery()<p id="EN-US_TOPIC_0000001145510895__a99624fe7402e48daab7a1543dc5eb076"><a name="EN-US_TOPIC_0000001145510895__l075959ec6e174dec83152baff1133bea"></a><a name="l075959ec6e174dec83152baff1133bea"></a>Description: Returns <strong id="EN-US_TOPIC_0000001145510895__b84235270611159">true</strong> if restoration is still in progress.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a79ffc5365c92480cbe1e4ead688929c8">Return type: bool</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__lbca69841cd134cbb900ad44d61d6139e">pg_last_xlog_receive_location()<p id="EN-US_TOPIC_0000001145510895__ab34d44ea7e364aabaf8f66758ef723f1"><a name="EN-US_TOPIC_0000001145510895__lbca69841cd134cbb900ad44d61d6139e"></a><a name="lbca69841cd134cbb900ad44d61d6139e"></a>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_0000001145510895__b1670043417517">NULL</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a618391292845413fa1cd400a4e94b8f4">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__lbc5f9b045f504ddc945908b50977af9e">pg_last_xlog_replay_location()<p id="EN-US_TOPIC_0000001145510895__ac20564e980404254aae62259bf241ada"><a name="EN-US_TOPIC_0000001145510895__lbc5f9b045f504ddc945908b50977af9e"></a><a name="lbc5f9b045f504ddc945908b50977af9e"></a>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_0000001145510895__b16534627175315">NULL</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__aeb86eb9c9a1b41558665401b14391c78">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__l1e28cb3f7c6f4a20a54f232ad70bc158">pg_last_xact_replay_timestamp()<p id="EN-US_TOPIC_0000001145510895__adac9b704ead948099000b3a9947c881b"><a name="EN-US_TOPIC_0000001145510895__l1e28cb3f7c6f4a20a54f232ad70bc158"></a><a name="l1e28cb3f7c6f4a20a54f232ad70bc158"></a>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_0000001145510895__b3673144817419">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_0000001145510895__b2852122912517">NULL</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a5d75db999ca143e4a9fe4f3e6d98f4c7">Return type: timestamp with time zone</p>
|
|
</li></ul>
|
|
<p id="EN-US_TOPIC_0000001145510895__a25f8c5f34c5d4210b50e9ffb8c7b4a5b">Restoration control functions control restoration processes. These functions may be executed only during restoration.</p>
|
|
<ul id="EN-US_TOPIC_0000001145510895__u755b241ce407434ba233b294c03c84d7"><li id="EN-US_TOPIC_0000001145510895__lc703f9edf46846efafb17beaa52560d1">pg_is_xlog_replay_paused()<p id="EN-US_TOPIC_0000001145510895__a40abd55ed15546539630f3a2ca15b283"><a name="EN-US_TOPIC_0000001145510895__lc703f9edf46846efafb17beaa52560d1"></a><a name="lc703f9edf46846efafb17beaa52560d1"></a>Description: Returns <strong id="EN-US_TOPIC_0000001145510895__b84235270611241">true</strong> if restoration is paused.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a1d64b941954a4b92b3c1264e74f3d6cf">Return type: bool</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__l19c2dcdd3feb4942a58ff698718a57f0">pg_xlog_replay_pause()<p id="EN-US_TOPIC_0000001145510895__aef4dfdc3d47048f391a0492a7cf05663"><a name="EN-US_TOPIC_0000001145510895__l19c2dcdd3feb4942a58ff698718a57f0"></a><a name="l19c2dcdd3feb4942a58ff698718a57f0"></a>Description: Pauses restoration immediately.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__a0ea211e6c6b646349804cbaf619f28b5">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__ld314874a25fb4d87ae95b421ba3ece46">pg_xlog_replay_resume()<p id="EN-US_TOPIC_0000001145510895__a1168c62387a64a7f9ef00527c4a0bded"><a name="EN-US_TOPIC_0000001145510895__ld314874a25fb4d87ae95b421ba3ece46"></a><a name="ld314874a25fb4d87ae95b421ba3ece46"></a>Description: Restarts restoration if it was paused.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__aae2266dfd4fc4df58e3000f709c100ba">Return type: void</p>
|
|
</li></ul>
|
|
<p id="EN-US_TOPIC_0000001145510895__a77cf5addb9434d4384e3a63e4401132a">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_0000001145510895__abacae368b0e4445c944b6486b7277586">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>
|
|
<ul id="EN-US_TOPIC_0000001145510895__ul10852812144517"><li id="EN-US_TOPIC_0000001145510895__li13662114119458">pg_xlog_replay_completion()<p id="EN-US_TOPIC_0000001145510895__p1466274119455"><a name="EN-US_TOPIC_0000001145510895__li13662114119458"></a><a name="li13662114119458"></a>Description: Displays the progress of xlog redo on the current DN.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p1420071505816">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p14662134115452">The following information is returned:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145510895__table3134174817461" frame="border" border="1" rules="all"><caption><b>Table 2 </b>pg_xlog_replay_completion() columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145510895__row14135248104614"><th align="left" class="cellrowborder" valign="top" width="26.090000000000003%" id="mcps1.3.3.8.1.4.2.4.1.1"><p id="EN-US_TOPIC_0000001145510895__p1135248124618">Column</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.11%" id="mcps1.3.3.8.1.4.2.4.1.2"><p id="EN-US_TOPIC_0000001145510895__p113518483461">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.8%" id="mcps1.3.3.8.1.4.2.4.1.3"><p id="EN-US_TOPIC_0000001145510895__p191354487467">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145510895__row1213514487464"><td class="cellrowborder" valign="top" width="26.090000000000003%" headers="mcps1.3.3.8.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p185613184813">replay_start</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.11%" headers="mcps1.3.3.8.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p656114154814">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.8%" headers="mcps1.3.3.8.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p556119164813">Start LSN of xlog redo</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row121351948114612"><td class="cellrowborder" valign="top" width="26.090000000000003%" headers="mcps1.3.3.8.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p11561131184811">replay_current</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.11%" headers="mcps1.3.3.8.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p17561151124816">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.8%" headers="mcps1.3.3.8.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p1956112116488">LSN of the current replay of xlog redo</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row313544817466"><td class="cellrowborder" valign="top" width="26.090000000000003%" headers="mcps1.3.3.8.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p35611219486">replay_end</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.11%" headers="mcps1.3.3.8.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p2561141174814">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.8%" headers="mcps1.3.3.8.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p1656119112484">Maximum LSN that requires xlog redo</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row9135184817461"><td class="cellrowborder" valign="top" width="26.090000000000003%" headers="mcps1.3.3.8.1.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p8561119489">replay_percent</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.11%" headers="mcps1.3.3.8.1.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p756131124812">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.8%" headers="mcps1.3.3.8.1.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p15612112487">Completion percentage of xlog redo</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li12915114584520">pg_data_sync_from_dummy_completion()<p id="EN-US_TOPIC_0000001145510895__p17915194517459"><a name="EN-US_TOPIC_0000001145510895__li12915114584520"></a><a name="li12915114584520"></a>Description: Displays the progress of data page file synchronization during the failover on the current DN.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p1762213245915">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p11939201184918">The following information is returned:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145510895__table1593921104918" frame="border" border="1" rules="all"><caption><b>Table 3 </b>pg_data_sync_from_dummy_completion() columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145510895__row1593971115495"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.8.2.4.2.4.1.1"><p id="EN-US_TOPIC_0000001145510895__p13939151144911">Column</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.8.2.4.2.4.1.2"><p id="EN-US_TOPIC_0000001145510895__p8939611194910">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.8.2.4.2.4.1.3"><p id="EN-US_TOPIC_0000001145510895__p1939121174915">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145510895__row1693941144915"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p1328815568490">start_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p1828895614911">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p20288956154918">Start LSN of data page file synchronization</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row209402114497"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p102881356124911">current_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p5288165619493">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p32887563496">Current LSN of data page file synchronization</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row994071119495"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p9288165618492">total_index</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p13288125611490">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p3289656134916">Maximum LSN of data page file synchronization</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145510895__row16940141117494"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145510895__p122892560494">sync_percent</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145510895__p182891565493">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.8.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145510895__p112891556184912">Completion percentage of data page files</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li13850111718121">gs_roach_stop_backup(backupid text)<p id="EN-US_TOPIC_0000001145510895__p685081781217"><a name="EN-US_TOPIC_0000001145510895__li13850111718121"></a><a name="li13850111718121"></a>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_0000001145510895__b12963020193817">pg_stop_backup</strong>, but is more lightweight.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p685021721213">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li142912191123">gs_roach_enable_delay_ddl_recycle(backupid name)<p id="EN-US_TOPIC_0000001145510895__p9429219171214"><a name="EN-US_TOPIC_0000001145510895__li142912191123"></a><a name="li142912191123"></a>Description: Enables DDL delay and returns the log position of the enabling point. This function is similar to <strong id="EN-US_TOPIC_0000001145510895__b3289144974914">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_0000001145510895__p142951931220">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li1736842011219">gs_roach_disable_delay_ddl_recycle(backupid text)<p id="EN-US_TOPIC_0000001145510895__p19995639201414"><a name="EN-US_TOPIC_0000001145510895__li1736842011219"></a><a name="li1736842011219"></a>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_0000001145510895__b2037133020107">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_0000001145510895__p11368142021213">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li1334812161215">gs_roach_switch_xlog(request_ckpt bool)<p id="EN-US_TOPIC_0000001145510895__p334892131218"><a name="EN-US_TOPIC_0000001145510895__li1334812161215"></a><a name="li1334812161215"></a>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_0000001145510895__b1224563971417">request_ckpt</strong> is <strong id="EN-US_TOPIC_0000001145510895__b7140154214144">true</strong>, a full check point is triggered.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p7348162118127">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145510895__li1574682214128">pg_resume_bkp_flag(backupid name)<p id="EN-US_TOPIC_0000001145510895__p1074642215126"><a name="EN-US_TOPIC_0000001145510895__li1574682214128"></a><a name="li1574682214128"></a>Description: Resumes the delay xlog flag from a specified backup and returns <strong id="EN-US_TOPIC_0000001145510895__b498762911196">start_backup_flag boolean</strong>, <strong id="EN-US_TOPIC_0000001145510895__b11274935151918">to_delay boolean</strong>, <strong id="EN-US_TOPIC_0000001145510895__b11706154118190">ddl_delay_recycle_ptr text</strong>, and <strong id="EN-US_TOPIC_0000001145510895__b13402124671916">rewind_time text</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001145510895__p67465228123">Return type: record</p>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0052.html">System Administration Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|