doc-exports/docs/dws/dev/dws_04_0804.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
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>
2023-01-19 13:37:49 +00:00

103 lines
8.0 KiB
HTML

<a name="EN-US_TOPIC_0000001145494541"></a><a name="EN-US_TOPIC_0000001145494541"></a>
<h1 class="topictitle1">PGXC_GET_STAT_ALL_PARTITIONS</h1>
<div id="body1598879531554"><p id="EN-US_TOPIC_0000001145494541__p2344191412188"><strong id="EN-US_TOPIC_0000001145494541__b1412215128817">PGXC_GET_STAT_ALL_PARTITIONS</strong> displays information about insertion, update, and deletion operations on partitions of partitioned tables and the dirty page rate of tables.</p>
<p id="EN-US_TOPIC_0000001145494541__p76096278192">The statistics of this view depend on the <strong id="EN-US_TOPIC_0000001145494541__b14913820202015">ANALYZE</strong> operation. To obtain the most accurate information, perform the <strong id="EN-US_TOPIC_0000001145494541__b487163215205">ANALYZE</strong> operation on the partitioned table first.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145494541__t6c300cc1797847adae05b4bd400a30a9" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PGXC_GET_STAT_ALL_PARTITIONS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145494541__r7c9f4b37cd894ed68dcbd282fd2464a1"><th align="left" class="cellrowborder" valign="top" width="33.33%" id="mcps1.3.3.2.4.1.1"><p id="EN-US_TOPIC_0000001145494541__a17658ed8d76e4514bec9f53c7f992505">Column</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.919999999999998%" id="mcps1.3.3.2.4.1.2"><p id="EN-US_TOPIC_0000001145494541__ac476c6793bc34253a8535512e32e902d">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.75%" id="mcps1.3.3.2.4.1.3"><p id="EN-US_TOPIC_0000001145494541__aaf4f7de306a645a58a3cf2237d05fefc">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001145494541__r30f39bf2a2f8419c9e110e6a9144636f"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p1160011111301">relid</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__a80f401d929a4440cbbd3ad959e86ef5f">oid</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__a31b6bede08c24ade99acf8080ea89a00">Table OID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__row122421650201616"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p102431750171615">partid</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__p172435501160">oid</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__p18243135016164">Partition OID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__r85f9c397e38641619053419ca445986c"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p155841225203011">schename</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__a8fbd877be523468ba5ee8aead5954c13">name</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__a9f18b3b16ed64428a6b3edf483791408">Schema name of a table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__row1596942488"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p897184184816">relname</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__p89817484814">name</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__p1099145484">Table name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__row52907341911"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p729019319199">partname</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__p112908311918">name</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__p182901637194">Partition name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__r3623c123596d4a31b27c3553584057e6"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p1219664054117">n_tup_ins</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__ae7c6dd96828a454a817cc57962c15202">numeric</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__a576dc3a6fb874538a99a995c4c1534b0">Number of inserted tuples</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__row204781949282"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p194796491814">n_tup_upd</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__p3479124915820">numeric</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__p204793499820">Number of updated tuples</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__row4302327154218"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p14386104410421">n_tup_del</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__p173030279421">numeric</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__p1130472764213">Number of deleted tuples</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__row174687374424"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p04691337114217">n_live_tup</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__p20469133724219">numeric</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__p154709379429">Number of live tuples</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__row157104984219"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p16874914210">n_dead_tup</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__p179134915423">numeric</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__p199174924217">Number of dead tuples</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145494541__row14389195612816"><td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001145494541__p1118111812436">page_dirty_rate</p>
</td>
<td class="cellrowborder" valign="top" width="17.919999999999998%" headers="mcps1.3.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001145494541__p1636555125610">numeric(5,2)</p>
</td>
<td class="cellrowborder" valign="top" width="48.75%" headers="mcps1.3.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001145494541__p14390856089">Dirty page rate (%) of a table</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000001145494541__p8060118"></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>