forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
90 lines
8.0 KiB
HTML
90 lines
8.0 KiB
HTML
<a name="EN-US_TOPIC_0000001145694677"></a><a name="EN-US_TOPIC_0000001145694677"></a>
|
|
|
|
<h1 class="topictitle1">PGXC_GET_STAT_ALL_TABLES</h1>
|
|
<div id="body1529378211887"><p id="EN-US_TOPIC_0000001145694677__p2344191412188"><strong id="EN-US_TOPIC_0000001145694677__b1412215128817">PGXC_GET_STAT_ALL_TABLES</strong> displays information about insertion, update, and deletion operations on tables and the dirty page rate of tables.</p>
|
|
<p id="EN-US_TOPIC_0000001145694677__p1969101511215">Before running <strong id="EN-US_TOPIC_0000001145694677__b84235270618228">VACUUM FULL</strong> to a system catalog with a high dirty page rate, ensure that no user is performing operations it.</p>
|
|
<p id="EN-US_TOPIC_0000001145694677__p14454183952111">You are advised to run <strong id="EN-US_TOPIC_0000001145694677__b84235270618153">VACUUM FULL</strong> to tables (excluding system catalogs) whose dirty page rate exceeds 30% or run it based on service scenarios.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145694677__t09d8e10f76724678a8f221dd29db736a" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PGXC_GET_STAT_ALL_TABLES columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145694677__r296db8ff4a4f4195b3fd7d935ac3436d"><th align="left" class="cellrowborder" valign="top" width="33.33%" id="mcps1.3.4.2.4.1.1"><p id="EN-US_TOPIC_0000001145694677__aabed0b68691942108b0e3aa157377da7">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.919999999999998%" id="mcps1.3.4.2.4.1.2"><p id="EN-US_TOPIC_0000001145694677__aae8adcb14b634a4793c5c29a8ded37cd">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="48.75%" id="mcps1.3.4.2.4.1.3"><p id="EN-US_TOPIC_0000001145694677__a4d5efd63bff341d59af7eb1359385af9">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145694677__r4058f6bdc9254911b191aa0e08d7edb6"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p1160011111301">relid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__ac9c372b991894c798b9fecec1fe03ea8">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__aa4d470d9917d4fedbce5cd58c754ce42">Table OID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694677__r9a69c15440fd4b3d86b38804ac7efffd"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p155841225203011">relname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__a6f502ef221ec4b8d8e5393022effc5bd">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__a13de41723a05484d86ab3c303d4c522a">Table name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694677__row1596942488"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p897184184816">schemaname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__p89817484814">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__p1099145484">Schema name of the table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694677__r3b0439badf02493a9fc3a84029209848"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p1219664054117">n_tup_ins</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__a32fd73348caf4482ad7acd39e5abfe13">numeric</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__aca413da9e4ea45aba0d8b389dcf956ec">Number of inserted tuples</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694677__row204781949282"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p194796491814">n_tup_upd</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__p3479124915820">numeric</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__p204793499820">Number of updated tuples</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694677__row4302327154218"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p14386104410421">n_tup_del</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__p173030279421">numeric</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__p1130472764213">Number of deleted tuples</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694677__row174687374424"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p04691337114217">n_live_tup</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__p20469133724219">numeric</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__p154709379429">Number of live tuples</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694677__row157104984219"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p16874914210">n_dead_tup</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__p179134915423">numeric</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__p199174924217">Number of dead tuples</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145694677__row14389195612816"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001145694677__p1118111812436">page_dirty_rate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001145694677__p1636555125610">numeric(5,2)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001145694677__p14390856089">Dirty page rate (%) of a table</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001145694677__p53681820141514"><span id="EN-US_TOPIC_0000001145694677__text347221151915">GaussDB(DWS)</span> also provides the <strong id="EN-US_TOPIC_0000001145694677__b1720340191017">pgxc_get_stat_dirty_tables(int dirty_percent, int n_tuples)</strong> and <strong id="EN-US_TOPIC_0000001145694677__b865781710103">pgxc_get_stat_dirty_tables(int dirty_percent, int n_tuples, text schema)</strong> functions to quickly filter out tables whose dirty page rate is greater than <strong id="EN-US_TOPIC_0000001145694677__b1778191614111">dirty_percent</strong>, number of dead tuples is greater than <strong id="EN-US_TOPIC_0000001145694677__b798413279117">n_tuples</strong>, and schema name is <strong id="EN-US_TOPIC_0000001145694677__b170745571112">schema</strong>. For details, see "Functions and Operators > System Administration Functions > Other Functions" in the <em id="EN-US_TOPIC_0000001145694677__i1125195015165">SQL Syntax</em>.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
|
|
</div>
|
|
</div>
|
|
|