Files
doc-exports/docs/dws/dev/dws_04_0958.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

115 lines
9.6 KiB
HTML

<a name="EN-US_TOPIC_0000001764491260"></a><a name="EN-US_TOPIC_0000001764491260"></a>
<h1 class="topictitle1">REMOTE_TABLE_STAT</h1>
<div id="body0000001194206441"><p id="EN-US_TOPIC_0000001764491260__p12988277571"><strong id="EN-US_TOPIC_0000001764491260__b8691132872220">REMOTE_TABLE_STAT</strong> provides statistics of all tables of the database on all DNs in the cluster. Except the <strong id="EN-US_TOPIC_0000001764491260__b10891634173415">nodename</strong> column of the name type added in front of each row, the names, types, and sequences of other columns are the same as those in the <a href="dws_04_0953.html">GS_TABLE_STAT</a> view.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764491260__table18835102533610" frame="border" border="1" rules="all"><caption><b>Table 1 </b>REMOTE_TABLE_STAT columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001764491260__row14139826153617"><th align="left" class="cellrowborder" valign="top" width="20.52%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001764491260__p121401267362">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="22.98%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001764491260__p15140226183615">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="56.49999999999999%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001764491260__p514042610361">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001764491260__row827710138812"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p1078111245120">nodename</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p18781192419115">Name</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p878117244114">Node name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row151401026133610"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p514052619363">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p8140122614364">Name</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p614002613365">Table namespace</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row414018266363"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p1814011268366">relname</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p10141112610367">Name</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p2141152693613">Table name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row1214172617366"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p191411626193614">seq_scan</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p1314116260361">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p10141122693612">Number of sequential scans. Only row-store tables are counted. For a partitioned table, the sum of the number of scans of each partition is displayed.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row51418261364"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p151418268364">seq_tuple_read</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p114192683610">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p1714212603616">Number of rows scanned in sequence. Only row-store tables are counted.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row191421026133611"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p8142132611361">index_scan</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p13142326183610">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p10142112615363">Number of index scans. Only row-store tables are counted.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row31421026133614"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p2142426193616">index_tuple_read</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p16142122663616">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p19143152610364">Number of rows scanned by the index. Only row-store tables are counted.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row12143122693615"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p81431926133612">tuple_inserted</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p3143112633618">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p31431226113612">Number of rows inserted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row51436262365"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p101431626173615">tuple_updated</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p1214482610365">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p161441226163617">Number of rows updated</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row4144142643612"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p614442633615">tuple_deleted</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p8144202611361">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p101449260368">Number of rows deleted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row514472693616"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p1114472615363">tuple_hot_updated</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p10144132612365">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p8144202611369">Number of rows with <strong id="EN-US_TOPIC_0000001764491260__b1866922733513">HOT</strong> updates.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row15144126183611"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p614462693619">live_tuples</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p9145112693613">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p214515267363">Number of live tuples. Query the view on the CN. If <strong id="EN-US_TOPIC_0000001764491260__b197253114352">ANALYZE</strong> is executed, the total number of live tuples in the table is displayed. Otherwise, <strong id="EN-US_TOPIC_0000001764491260__b15973193114351">0</strong> is displayed. This indicator applies only to row-store tables.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001764491260__row11145112617362"><td class="cellrowborder" valign="top" width="20.52%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491260__p1314512613360">dead_tuples</p>
</td>
<td class="cellrowborder" valign="top" width="22.98%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491260__p11146162617363">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="56.49999999999999%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491260__p2146026203612">Number of dead tuples. Query the view on the CN. If <strong id="EN-US_TOPIC_0000001764491260__b1239193973520">ANALYZE</strong> is executed, the total number of dead tuples in the table is displayed. Otherwise, <strong id="EN-US_TOPIC_0000001764491260__b7240139143517">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>