doc-exports/docs/dws/dev/dws_04_0770.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
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>
2023-01-19 13:37:49 +00:00

101 lines
8.1 KiB
HTML

<a name="EN-US_TOPIC_0000001145894719"></a><a name="EN-US_TOPIC_0000001145894719"></a>
<h1 class="topictitle1">PG_STAT_XACT_ALL_TABLES</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001145894719__en-us_topic_0059778946_p173902513"><strong id="EN-US_TOPIC_0000001145894719__b84235270614407">PG_STAT_XACT_ALL_TABLES</strong> displays the transaction status information about all ordinary tables and TOAST tables in the namespaces.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145894719__t018bb45eb50f431ea9ad5ac3a1858c8e" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_STAT_XACT_ALL_TABLES columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145894719__r99b3f2036daf4631af7e4b997190f228"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001145894719__acb157f75b0b1405692a0db954d77b81f"><strong id="EN-US_TOPIC_0000001145894719__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_0000001145894719__a64583ebb91e346caa6fb6d7f3f76ad46">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_0000001145894719__a5e512f20a45e4636a7213ae3ebde9c85">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001145894719__r3ee5854e05e048ec83e26365a803a1aa"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__a782e24adda884bb68c21cd3ad48198fd">relid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__a7549e01a5c2342318fcf35ddb704f182">oid</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__ac39db45380d3484a8cd9243a6b5a3973">Table OID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__r0817e429ec7c4d959025e62a9c993bcf"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__a879d0a6111864b96a14a2895f16d8e1e">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__a3e674d2f20d349ae8345b98969495e5a">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__a51039a68ae9240dfb30aee461f54d750">Schema name of the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__rdaa15387e4f0452f90af4a42e4ac3f0b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__ae626c0be10be49b79d3f6c74e43bfc41">relname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__a4e14f070430e4ee096b794ffd92abcd9">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__a1ef63c186f5b4894854d6a76c6a3fc80">Table name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__r71fc80ff85c540e5ba93e526565a1ce4"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__a1d864350e7a1464da003b8b653e9777d">seq_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__aa89a8fb155584ca58f09215c290da18d">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__a716c5c8f9ce84b35ab59f1d7ccb2ca03">Number of sequential scans started on the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__r6eee27943b774667b78aa7369ff2230c"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__a358ff2d54256436ea173eb1e75612e35">seq_tup_read</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__aea422320348b4b738ff973108ffd7384">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__a6fc4deb59f8d4bb8b3067a45eb9cabe9">Number of live rows fetched by sequential scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__rb43e670678e145e692ace381beda03ed"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__ad55f2ba6caa94fda821ccaa3bb6835bc">idx_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__afe4519862b6d4c49a51a43c94934c179">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__p17411178185619">Number of index scans started on the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__r437889808b36462c968c462749d590c8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__abb12f62edd0e44e0916e628b27d2e378">idx_tup_fetch</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__a30e60b54af884463843420dc0bf1825c">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__abf8ee9e698df4e0dbc3f5b51e0ca39de">Number of live rows fetched by index scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__rb19ef5cc8d0d4fdcaa29d449cbe75fea"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__ac2a408d296144dd581b8d84eebbd920e">n_tup_ins</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__a138adeb0bcb44f36a354fc184c264c02">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__ae4faf613df3246b4833f2d7dba3b4d4b">Number of rows inserted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__r7412f1f2c220464a897f6e089c63d86a"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__a73e7e599fcec43ef885b40ea92c327c7">n_tup_upd</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__ae814824ab1644f6fad217aaaf76240f0">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__a4a9102768fad4e1e8660e07d039fc2fb">Number of rows updated</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__r4aca52ca16bb42908cdaea25e95f63e7"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__a3c7f54d7b6bd487eb9a262a9c3178cf0">n_tup_del</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__a70f1885a540b4700a5f1e9800151a319">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__a7b48094d61c846bab76e4894450c7c8b">Number of rows deleted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145894719__r5bc1b391591a408a94f5cb1896082eae"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145894719__abbf80f2808434ae690539a2954241ce7">n_tup_hot_upd</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145894719__ab4ac611ddd14400f87fa722611ad5e63">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145894719__a626861c3d60247249567b0efcce60b15">Number of rows HOT updated (that is, with no separate index update required)</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>