forked from docs/doc-exports
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>
108 lines
9.2 KiB
HTML
108 lines
9.2 KiB
HTML
<a name="EN-US_TOPIC_0000001188323548"></a><a name="EN-US_TOPIC_0000001188323548"></a>
|
|
|
|
<h1 class="topictitle1">GS_TABLE_STAT</h1>
|
|
<div id="body0000001148201184"><p id="EN-US_TOPIC_0000001188323548__p81385269368"><strong id="EN-US_TOPIC_0000001188323548__b149585675414">GS_TABLE_STAT</strong> displays statistics about all tables (excluding foreign tables) of the database on the current node. The values of <strong id="EN-US_TOPIC_0000001188323548__b1136924219541">live_tuples</strong> and <strong id="EN-US_TOPIC_0000001188323548__b2036974255418">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_0000001188323548__table18835102533610" frame="border" border="1" rules="all"><caption><b>Table 1 </b>GS_TABLE_STAT columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188323548__row14139826153617"><th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188323548__p121401267362">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_0000001188323548__p15140226183615">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_0000001188323548__p514042610361">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188323548__row151401026133610"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p514052619363">schemaname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323548__p8140122614364">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p614002613365">Namespace of a table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row414018266363"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p1814011268366">relname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.120000000000001%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323548__p10141112610367">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p2141152693613">Table name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row1214172617366"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p191411626193614">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_0000001188323548__p1314116260361">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p10141122693612">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_0000001188323548__row51418261364"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p151418268364">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_0000001188323548__p114192683610">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p1714212603616">Number of rows scanned in sequence. It is counted only for row-store tables.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row191421026133611"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p8142132611361">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_0000001188323548__p13142326183610">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p10142112615363">Number of index scans. It is counted only for row-store tables.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row31421026133614"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p2142426193616">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_0000001188323548__p16142122663616">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p19143152610364">Number of rows scanned by the index. It is counted only for row-store tables.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row12143122693615"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p81431926133612">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_0000001188323548__p3143112633618">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p31431226113612">Number of rows inserted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row51436262365"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p101431626173615">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_0000001188323548__p1214482610365">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p161441226163617">Number of rows updated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row4144142643612"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p614442633615">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_0000001188323548__p8144202611361">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p101449260368">Number of rows deleted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row514472693616"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p1114472615363">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_0000001188323548__p10144132612365">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p8144202611369">Number of rows with HOT updates.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row15144126183611"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p614462693619">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_0000001188323548__p9145112693613">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p214515267363">Number of live tuples. Query the view on the CN. If <strong id="EN-US_TOPIC_0000001188323548__b2075021614422">ANALYZE</strong> is executed, the total number of live tuples in the table is displayed. Otherwise, <strong id="EN-US_TOPIC_0000001188323548__b4508848124216">0</strong> is displayed. This indicator applies only to row-store tables.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188323548__row11145112617362"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323548__p1314512613360">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_0000001188323548__p11146162617363">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323548__p2146026203612">Number of dead tuples. Query the view on the CN. If <strong id="EN-US_TOPIC_0000001188323548__b5247649445">ANALYZE</strong> is executed, the total number of dead tuples in the table is displayed. Otherwise, <strong id="EN-US_TOPIC_0000001188323548__b524716484416">0</strong> is displayed. 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>
|
|
|