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>
129 lines
11 KiB
HTML
129 lines
11 KiB
HTML
<a name="EN-US_TOPIC_0000001145814431"></a><a name="EN-US_TOPIC_0000001145814431"></a>
|
|
|
|
<h1 class="topictitle1">PG_STAT_REPLICATION</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001145814431__aee012e82db1d478d8615b52af6f491f5"><strong id="EN-US_TOPIC_0000001145814431__a7b260bedfe8443ccaffdaf3faeab52b5">PG_STAT_REPLICATION</strong> displays information about log synchronization status, such as the locations of the sender sending logs and the receiver receiving logs.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145814431__t84a3bcf01835495380b83850a40b3464" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_STAT_REPLICATION columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145814431__rf5cc2a2a712043f1b5b1f30baea993bf"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001145814431__a26640333bd3b49b49e81e9d8610bbee0"><strong id="EN-US_TOPIC_0000001145814431__b84235270691445">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001145814431__a03708617fa854b4c9b0d16a4da11e8e9">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001145814431__a4a6e73929e554cd0bada6666853ce68a">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145814431__r034f5a8c83274d818e927fe24426a52b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__a48f11792100a4cb69515335f0930b283">pid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__ac37b6ec9b8f34bb2ba3678e1c2d6f6f3">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__ae6a67aa375ac41249983c529d7b245f7">PID of the thread</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r619ddeeb384b4d4abfbf137eb2972b64"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__ab7aa7110fb9843de8fc511f7ace7506d">usesysid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__abb520301b851458bad552c7916ab62d2">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__a9984390e82684b2290182b079104309b">User system ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__rb7d2b9c5ba174d05bc886294be4bcfb9"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__af9f278c9b89d4dc1b2d0f9bcdac9660d">usename</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__a38ce82f1b47c4da7a2812e1ac84192d1">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__acdf276f1b8524e07807d6e123c55e4d9">Username</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r31618cc5b1994c0c957e3503564b4e99"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__ac68dfafa1c574f5ea5b46f1501bf31c1">application_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__a7568a8adb8db48968b0f6876e31d9db1">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__af5c69d148a214e34a047d736829519ee">Application name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r6d37581f2cd64ffebf1f3e0265163e09"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__ab67ec85784164d10a1102de83a416404">client_addr</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__aae87de26c4604f16be42d103b82f863d">inet</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__a79c1233f6a7e4abe94e5423cd7d11ffb">Client address</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__ra16b67b3decc456a9bd17c378f7d63f6"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__afb14b9fbb1f7477bbef19ee15351f810">client_hostname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__a9fd9cda1c1e34998b7dc7cf5ecf9b167">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__a50c10df46e3e4fe3a6eaf89a0b4ebd08">Client name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r5c253a570d89449d84b5030d8dbc4624"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__ad9ed77588785469aafb81e61f74e6311">client_port</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__a15f86f212a31423483b61359c2130b0f">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__a2e911587c7934e869b10bd55bb636bcd">Client port number</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r74cf74073a7545fab387dec160b24deb"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__a2f32d824fe024420b0985dc5b2f30666">backend_start</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__acfd74e3eab2f40a8807ac2c60ee8f8f9">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__a4895eec4030449de8133e1e30b54f0eb">Start time of the program</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r3b6d6197ae6346f8b01f6940e35a27d5"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__a2f1361dbd2fc45aeafb768553bff0bfd">state</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__a79b94f59c6b9412fb0d963c08fe935a4">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__af311392e128644e981041cfc24a739be">Log replication state (catch-up or consistent streaming)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__rdaf79bd84587480d89a908832a99345d"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__acf154f9397534bfba5fda0e7a393fa0f">sender_sent_location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__a3aad16020654427f8716491943a1f562">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__aaf528044d77349989b4fffda9f23e9ca">Location where the sender sends logs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r2a85110962c448c288bdb700bcce62ad"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__ab841998de8ee40ac8fb1fe8a6d1493ce">receiver_write_location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__a90be9eb501e0459295c7eaec6556577c">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__ace36b20bd77b44fd84b0ff1611976af5">Location where the receiver writes logs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r59afa7d465bf4375a0dff057e1d3916b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__af9b2ceef160a4688a149f5ee8edda571">receiver_flush_location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__ab0146a5e531c4200ab07b3c2623ddb8c">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__adfb15c3da2c144eda328a68a669e2b99">Location where the receiver flushes logs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__rc5fff2a1e95a4455882c34b900690e80"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__a7e56126f56da433fbe806dc319bfad13">receiver_replay_location</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__aeeb3c6539ccf4182a2c25e2baffa532a">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__a1f1ba142e8e64c26b945c764200a56cb">Location where the receiver replays logs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__ra3383b2349504df288b742b76203be2d"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__a9786f2235cc74d95b880d0829fb77755">sync_priority</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__a8c86910f6cc24b08b7dedce537bc0b60">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__a3e8400d0a7674bffb0a3466323fdddfc">Priority of synchronous duplication (<strong id="EN-US_TOPIC_0000001145814431__b842352706224457">0</strong> indicates asynchronization)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145814431__r8914a4fc36044a789a4ac8d27e3df3ae"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814431__aa78d8803d3fb42b388e284f95a1d0d33">sync_state</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814431__aa897e3d899e946668e2029f6bc42e58b">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814431__aff9c90ead15546e5b9885c6c2d12fbb5">Synchronization state (asynchronous duplication, synchronous duplication, or potential synchronization)</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
|
|
</div>
|
|
</div>
|
|
|