doc-exports/docs/dws/dev/dws_04_0770.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

101 lines
8.1 KiB
HTML

<a name="EN-US_TOPIC_0000001233761797"></a><a name="EN-US_TOPIC_0000001233761797"></a>
<h1 class="topictitle1">PG_STAT_XACT_ALL_TABLES</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001233761797__en-us_topic_0059778946_p173902513"><strong id="EN-US_TOPIC_0000001233761797__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_0000001233761797__t9efa13c1ac9343919daac331d94fdd0f" 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_0000001233761797__rd506b9a913594427982a1ce63fbd95a8"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233761797__a6dc8a9aa762e4142a31051b7f8a0d402"><strong id="EN-US_TOPIC_0000001233761797__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_0000001233761797__ab9d3b34cbf3f4bcea957f2dcbb7a41a1">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_0000001233761797__a530f75f38e7a498fa6d08ca1f07a0183">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233761797__r6be55204ccdc48078f9b1314a48aa43b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__aaef4b0b640e244c19775ded16dd9e291">relid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761797__adfd61c71f47e4507bdf159b6cc3df016">oid</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__a93ee4878574b4b7682d6f2ffe3ab0019">Table OID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__r28828242939d4400a8f060000b968ae1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__a5ea66ae7156748d7b8dd489eb5c988c9">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761797__a6a60fad4ecee494a83fe6154a5a8660a">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__a465bbe6ae67d40cab562528f6dbc235c">Schema name of the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__r78230724990c426c874878ec3f99dcc9"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__a7537a008102941b0a5022d6f443f0ad5">relname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761797__aed18679be09e4310ae61772a36c7045f">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__aee971645be7047f28c589e0714ae7dbb">Name of a table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__r991369f08c014350ae59f537a4f1cdb0"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__a15c1d833d2fa4632a75590713e00a1e0">seq_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761797__a18b1bc03f3df44b98c655da7fa5c749b">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__ae09eb3ac73844c19a0f5c67de1d5371f">Number of sequential scans started on the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__re523ec9e48d5416498354d9da2652fc3"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__a6dc528688c1e4d51ab33ae59d52ae125">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_0000001233761797__a407d4756e1f1449da4f6ab8b529b32b2">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__a3b4dff875aaa4927a2c4f042d390d1eb">Number of live rows fetched by sequential scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__rce3fd9cb443e4ddd99b610948421a506"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__afd7f8e21b74944979f347c99450f599c">idx_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761797__ad719a28556344851b62b25bbf428b21f">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__p17411178185619">Number of index scans started on the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__r2b8e4f8a4ef1460dbc318a5fb85fd4ef"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__a20b09788986b490fa2882752b9e5f948">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_0000001233761797__a2e2236f27e024188ac6721dc95e93c3d">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__a5cff2437a2dd450791700181d1a91487">Number of live rows fetched by index scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__rcb44100ec4964876aa90bb1afaa16f35"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__ae40aee6e7aaa4ac5a01827f230f65267">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_0000001233761797__a52b6a17dde2f496ea149c91e8bcfb645">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__a69e8e2eba9e74329a3e7f1057474fb70">Number of rows inserted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__r03428348ac7e4a15ae7d568be9326bf3"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__aac49ac5f2fff48a38f2aef300015d45d">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_0000001233761797__ac80c94f0bea44344a2f904b54fb5d217">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__ac84a0d81f06f4c02b240774ca1c43ce8">Number of rows updated</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__rd8b3141d0b254a6a8becce3ba2d19738"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__a2151f4d4894f46f288cdd3bf46627b34">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_0000001233761797__a38492e136282498b92aac7ab438dbf43">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__a1289c7d4fe914c5a8ecd6b45c457a0dd">Number of rows deleted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233761797__r7a6412f98d3b4e799793aef752247e96"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761797__a44b0bd1f9b5c4b7791fce630656286a0">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_0000001233761797__ac8d5a4f8f0ef48a4a0d1aaec9157c793">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761797__aac62c594e41a441190ac128d07fe0e98">Number of rows with HOT updates (no separate index update is 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>