doc-exports/docs/dws/dev/dws_04_0767.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
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>
2024-05-16 07:24:04 +00:00

129 lines
11 KiB
HTML

<a name="EN-US_TOPIC_0000001233681829"></a><a name="EN-US_TOPIC_0000001233681829"></a>
<h1 class="topictitle1">PG_STAT_REPLICATION</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001233681829__a3d8c6065c82647f99c7b6508ec5a5646"><strong id="EN-US_TOPIC_0000001233681829__b14039214454165">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_0000001233681829__td21ace34c7c14bc98b0693650050189b" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_STAT_REPLICATION columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233681829__r3bd3d166ba3943618205f5607c0839a0"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233681829__ad4a110dbf0e54eda8733cd6c14113913"><strong id="EN-US_TOPIC_0000001233681829__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_0000001233681829__a0808e035557d425ebdc2f2cc15c2edd9">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001233681829__a54f0cc262c20425fb59e08200f94e7a2">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233681829__re661fe60947143bd81b8a41d9a097eea"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a86a82074edaa46f0b915f4f16bb68bc5">pid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__aa49e4b6131d44e6393a8e25a32e70d08">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__a8881e51b263e4104acabf837e333f4cc">PID of the thread</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__rd38da3defbfd49d0a18affe0829374af"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a6c13b84121ec44a6aa7c767015c15198">usesysid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__a29fb8154a8614936be8d48fd3f91c653">oid</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__ac7bf1fcb7acf4bb0b50894aec9d8454a">User system ID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__r4ee3ebf84c514ca6bc3602bdfe6109fb"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a24f4c124601a47099f970bee628b6b30">usename</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__ab9f0c9bf22b04614a85bc81d370a90ae">name</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__ab6a51c60278243998ce4d1252b8d27c3">Username</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__r16b55028f1974122a4c9e2429a957ee4"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a31453e652b3a447aa19f8ff2eae91408">application_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__ad6a5d31b5ba143f0a086e392c73599ab">text</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__ad252da1a14104066917cbb1e02626d88">Application name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__rdaed1ab7d4c744cdac7cfbd874680b90"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a014fa62182cd41da92ad77ab2863313b">client_addr</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__aef2d718512f94ebca3292aabbec40449">inet</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__a28c34b6d0d3e487fb6d2fc9aa587d814">Client address.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__rd339f80bff0646189095bd2186bcabde"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__aab598456ba5e4e49b354f95177a19b17">client_hostname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__abfb5ac217ac549cc90ccbb1118f68a22">text</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__aede7df602fa344b6be058f0f45528990">Client name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__rceb20f2e198b402eaaa983f7c9521bf2"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__aae48c3bc3df54d6f8f1d66bcae7f945f">client_port</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__aaac8ff424efc4fc480af9c3d13a7105c">integer</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__ae342a27a85104bf9ac91726ff4d0df44">Client port number</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__r041e595ee6af4206ba7a6fca349b4783"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a45d879f126364248a0a62da31ed354d6">backend_start</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__a3e0b24d5ab8648aeb7da677e75e36026">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__a32edbf8469e9496bb39fe0fe32700593">Start time of the program</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__r9bd7227fb1c24bbb8de93c12f772e254"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__aedf4d517f71f41d1b4a389fc879ef6fe">state</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__ab62150a167074312ab3eaee1d4f76202">text</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__a4afca7bd8f7a4d1f82ec3a41033d985c">Log replication state (catch-up or consistent streaming)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__r928eabf62f8c41c4b1e286e6c983d92c"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a7991dcda8e354d0da720d1a59d8f738c">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_0000001233681829__ad3ddf9baa91a4c269e119d1b0efc4dbe">text</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__aee3c2ca02ad3488d98b73cb32f6a49fc">Location where the sender sends logs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__rca2bf55502154cb3ba4444f3b2cb5eb1"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__ac26d19d57b274a66bfb0019a2fbb2e82">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_0000001233681829__a3784040aa1c6468f8e937cc192b6fd6f">text</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__acc13e3522df74dc0aa05cbd51d93843b">Location where the receiver writes logs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__reb81bd2407e0422f8bda11460c2d3ca3"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a94ab6d07780f4cedbddc5551a3011820">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_0000001233681829__aa7fa367777bf4f2b96d9a01fbf19553b">text</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__a3f00e7e8ff6e483996e7bfdf722f23a0">Location where the receiver flushes logs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__rf9e5b38358ba4c52a5f424052b7ceade"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a547fbbd9b6004717a6ee981c91c57d96">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_0000001233681829__ac55e4d334a214548bffe4b810fa55dac">text</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__a49fb07170f0740928cdf68b194371a11">Location where the receiver replays logs</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__r1c11fdfbcb574b0782d34942d53db0fa"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a4d367893409845fd9ee28fb6a07753b4">sync_priority</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__a1183813dbecd455c8dbf32b792c82a1b">integer</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__ae4fc5c7fe8c049148acbf58c54ff4ac0">Priority of synchronous duplication (<strong id="EN-US_TOPIC_0000001233681829__b20810473824165">0</strong> indicates asynchronization)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681829__r8ee9cfed19e94d3d860f36b1b1d4237d"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681829__a0e65108c2c954a1883cdf90ca27ea368">sync_state</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681829__a2860da408b464ee7b04898ff294e6d1d">text</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681829__a89b6169c90e94321881936cbc31e4ad4">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>