forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
108 lines
9.1 KiB
HTML
108 lines
9.1 KiB
HTML
<a name="EN-US_TOPIC_0000001811610401"></a><a name="EN-US_TOPIC_0000001811610401"></a>
|
|
|
|
<h1 class="topictitle1">GS_TABLE_STAT</h1>
|
|
<div id="body0000001148201184"><p id="EN-US_TOPIC_0000001811610401__p81385269368"><strong id="EN-US_TOPIC_0000001811610401__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_0000001811610401__b1136924219541">live_tuples</strong> and <strong id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__row14139826153617"><th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001811610401__p121401267362"><strong id="EN-US_TOPIC_0000001811610401__b163233834243616">Column</strong></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_0000001811610401__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_0000001811610401__p514042610361">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001811610401__row151401026133610"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p614002613365">Namespace of a table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row414018266363"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p2141152693613">Table name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row1214172617366"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p10141122693612">Number of sequential scans. For a partitioned table, the sum of the number of scans of each partition is displayed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row51418261364"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p1714212603616">Number of rows scanned in sequence.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row191421026133611"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p10142112615363">Number of index scans.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row31421026133614"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p19143152610364">Number of rows scanned by the index.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row12143122693615"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p31431226113612">Number of rows inserted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row51436262365"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p161441226163617">Number of rows updated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row4144142643612"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p101449260368">Number of rows deleted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row514472693616"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p8144202611369">Number of rows with HOT updates.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row15144126183611"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p214515267363">Number of live tuples. Query the view on the CN. If <strong id="EN-US_TOPIC_0000001811610401__b2075021614422">ANALYZE</strong> is executed, the total number of live tuples in the table is displayed. Otherwise, <strong id="EN-US_TOPIC_0000001811610401__b4508848124216">0</strong> is displayed. This indicator applies only to row-store tables.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001811610401__row11145112617362"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001811610401__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_0000001811610401__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_0000001811610401__p2146026203612">Number of dead tuples. Query the view on the CN. If <strong id="EN-US_TOPIC_0000001811610401__b5247649445">ANALYZE</strong> is executed, the total number of dead tuples in the table is displayed. Otherwise, <strong id="EN-US_TOPIC_0000001811610401__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>
|
|
|