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

117 lines
10 KiB
HTML

<a name="EN-US_TOPIC_0000001233563235"></a><a name="EN-US_TOPIC_0000001233563235"></a>
<h1 class="topictitle1">GLOBAL_TABLE_STAT</h1>
<div id="body0000001194206443"><p id="EN-US_TOPIC_0000001233563235__p48571516115915"><strong id="EN-US_TOPIC_0000001233563235__b129641491190">GLOBAL_TABLE_STAT</strong> displays statistics about all tables (excluding foreign tables) in the current database. The values of <strong id="EN-US_TOPIC_0000001233563235__b924834123113">live_tuples</strong> and <strong id="EN-US_TOPIC_0000001233563235__b883033715312">dead_tuples</strong> are real-time values, and the values of other statistical columns are accumulated values since the instance was started.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233563235__table262013167598" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GLOBAL_TABLE_STAT columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233563235__row2857316105910"><th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233563235__p19857141612593">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12.120000000000001%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001233563235__p1685721675912">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.629999999999995%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001233563235__p1685801618596">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233563235__row12858151695913"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p128588163590">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p138581016155915">name</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p785820169591">Namespace of a table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row13858516205918"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p13858116175914">relname</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p1585991605916">name</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p19859151685918">Table name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row12859016165912"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p198595161591">distribute_mode</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p485916164595">char</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p128591216135913">Distribution mode of a table. The meaning of this column is the same as that of the <strong id="EN-US_TOPIC_0000001233563235__b1695016313346">pclocatortype</strong> column in the <strong id="EN-US_TOPIC_0000001233563235__b440114313341">pgxc_class</strong> system catalog.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row4859201665917"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p286016166591">seq_scan</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p2860121610593">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p1586071625917">Number of sequential scans. It is counted only for row-store tables. For a partitioned table, the sum of the number of scans of each partition is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row178602016185920"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p118604166592">seq_tuple_read</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p3860181615597">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p9860151655910">Number of rows scanned in sequence. It is counted only for row-store tables.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row12860131618597"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p48611116205914">index_scan</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p12861141695912">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p586121614597">Number of index scans. It is counted only for row-store tables.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row48611116165912"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p1286151612598">index_tuple_read</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p4861816135919">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p786291635919">Number of rows scanned by the index. It is counted only for row-store tables.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row128621716185918"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p13862181645915">tuple_inserted</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p18862716135913">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p586201617593">Number of rows inserted. For a replication table, the maximum value of each node is displayed. For a distribution table, the sum of all nodes is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row18862816115911"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p14862111685915">tuple_updated</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p11862316105918">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p12862716105910">Number of rows updated. For a replication table, the maximum value of each node is displayed. For a distribution table, the sum of all nodes is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row6862121685918"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p386331617599">tuple_deleted</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p19863141619594">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p1686371616592">Number of rows deleted. For a replication table, the maximum value of each node is displayed. For a distribution table, the sum of all nodes is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row1486310167595"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p68631216155911">tuple_hot_updated</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p16863916125911">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p9863151614590">Number of rows with HOT updates. For a replication table, the maximum value of each node is displayed. For a distribution table, the sum of all nodes is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row1586310166594"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p1786321615913">live_tuples</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p3863131615911">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p1386312160591">Number of live tuples. The maximum value of each node is displayed. For a distribution table, the sum of all nodes is displayed.</p>
<p id="EN-US_TOPIC_0000001233563235__p8863111617593">This indicator applies only to row-store tables.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563235__row17863171613592"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563235__p1486371616597">dead_tuples</p>
</td>
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563235__p9864101695914">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563235__p786418160591">Number of dead tuples. The maximum value of each node is displayed. For a distribution table, the sum of all nodes is displayed.</p>
<p id="EN-US_TOPIC_0000001233563235__p4864191620592">This indicator applies only to row-store tables.</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>