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>
867 lines
109 KiB
HTML
867 lines
109 KiB
HTML
<a name="EN-US_TOPIC_0000001188270492"></a><a name="EN-US_TOPIC_0000001188270492"></a>
|
|
|
|
<h1 class="topictitle1">Statistics Information Functions</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188270492__p148591130145317">Statistics functions are classified into the following types based on the objects:</p>
|
|
<ul id="EN-US_TOPIC_0000001188270492__ul816615471539"><li id="EN-US_TOPIC_0000001188270492__li161669475530">Functions used to access a database. Table OIDs and indexes in the database can be used to identify the database.</li><li id="EN-US_TOPIC_0000001188270492__li01661347165311">Functions used to accesses a server. The server process ID is used as a parameter. The value ranges from 1 to the number of active servers.</li></ul>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section10268133111128"><h4 class="sectiontitle">pg_stat_get_db_numbackends(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p19113112912213">Description: Obtains the number of active server threads of a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p811319296217">Return type: integer</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section113951614111316"><h4 class="sectiontitle">pg_stat_get_db_total_numbackends(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p311352916210">Description: Obtains the total number of active server threads of a specified database on all CNs in a cluster (if this function is executed on a CN), or obtains the number of active server threads of a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1111419290217">Return type: integer</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1268016266136"><h4 class="sectiontitle">pg_stat_get_db_xact_commit(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p8114172962118">Description: Obtains the number of committed transactions in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p5114122962115">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section13949645101316"><h4 class="sectiontitle">pg_stat_get_db_total_xact_commit(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p13114729192119">Description: Obtains the total number of committed transactions in a specified database on all CNs in a cluster (if this function is executed on a CN), or obtains the number of committed transactions in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1411562912114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section583015594135"><h4 class="sectiontitle">pg_stat_get_db_xact_rollback(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p411518299215">Description: Obtains the number of rollback transactions in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p16115729102112">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section04691810181412"><h4 class="sectiontitle">pg_stat_get_db_total_xact_rollback(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p7115162942111">Description: Obtains the total number of rollback transactions in a specified database on all CNs in a cluster (if this function is executed on a CN), or obtains the number of rollback transactions in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p14115329122114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section15017219147"><h4 class="sectiontitle">pg_stat_get_db_blocks_fetched(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p181168291216">Description: Obtains the number of disk block fetch requests in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p4116172914219">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section16580153010149"><h4 class="sectiontitle">pg_stat_get_db_total_blocks_fetched(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p19116629192111">Description: Obtains the total number of disk block fetch requests in a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of disk block fetch requests in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p6116182942115">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section11729185215146"><h4 class="sectiontitle">pg_stat_get_db_blocks_hit(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p9117162982112">Description: Obtains the number of requested disk blocks found in the cache in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p9117122982116">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section982019313159"><h4 class="sectiontitle">pg_stat_get_db_total_blocks_hit(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p11171129182113">Description: Obtains the total number of requested disk blocks found in the cache in a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of requested disk blocks found in the cache in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1711719293214">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section09012154153"><h4 class="sectiontitle">pg_stat_get_db_tuples_returned(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p611892917219">Description: Obtains the number of tuples returned for a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p181183295219">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section913992931510"><h4 class="sectiontitle">pg_stat_get_db_total_tuples_returned(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p911814297218">Description: Obtains the total number of tuples returned for a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of tuples returned for a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p611811294216">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section65941338201520"><h4 class="sectiontitle">pg_stat_get_db_tuples_fetched(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p21191294219">Description: Obtains the number of tuples read from a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p11191029172112">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1727035111158"><h4 class="sectiontitle">pg_stat_get_db_total_tuples_fetched(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1511952911213">Description: Obtains the total number of tuples read from a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of tuples read from a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1011982982119">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section165372531611"><h4 class="sectiontitle">pg_stat_get_db_tuples_inserted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p11192296217">Description: Obtains the number of tuples inserted into a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1312014292211">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section452011461612"><h4 class="sectiontitle">pg_stat_get_db_total_tuples_inserted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p9120129152113">Description: Obtains the total number of tuples inserted into a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of tuples inserted into a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p9120129162116">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section9855153021619"><h4 class="sectiontitle">pg_stat_get_db_tuples_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p712122914218">Description: Obtains the number of updated tuples in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1612118292219">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section440312350188"><h4 class="sectiontitle">pg_stat_get_db_total_tuples_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p11214297218">Description: Obtains the total number of updated tuples in a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of updated tuples in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p16121112982116">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1880144811184"><h4 class="sectiontitle">pg_stat_get_db_tuples_deleted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1812282912116">Description: Obtains the number of tuples deleted from a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p2122129192118">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section11976578181"><h4 class="sectiontitle">pg_stat_get_db_total_tuples_deleted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1312262914214">Description: Obtains the total number of tuples deleted from a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of tuples deleted from a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p17122102902115">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1281671191"><h4 class="sectiontitle">pg_stat_get_db_conflict_lock(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p2123529122110">Description: Obtains the total number of conflicting locks in a specified database on all CNs and DNs in a cluster (if this function is executed on a CN), or obtains the number of conflicting locks in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1912342942118">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section13964319141917"><h4 class="sectiontitle">pg_stat_get_db_deadlocks(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p151231329202116">Description: Obtains the number of deadlocks in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p161245293210">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section386130151914"><h4 class="sectiontitle">pg_stat_get_db_total_deadlocks(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p12124029202114">Description: Obtains the total number of deadlocks in a specified database on all CNs and DNs in a cluster (if this function is executed on a CN), or obtains the number of deadlocks in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1012442922120">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section3651185714198"><h4 class="sectiontitle">pg_stat_get_db_conflict_all(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1212422917217">Description: Obtains the number of conflict recoveries in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p91241529172118">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section133219812016"><h4 class="sectiontitle">pg_stat_get_db_total_conflict_all(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p21251729162111">Description: Obtains the total number of conflict recoveries in a specified database on all CNs and DNs in a cluster (if this function is executed on a CN), or obtains the number of conflict recoveries in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p71251129182114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1359352420202"><h4 class="sectiontitle">pg_stat_get_db_temp_files(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p181251529142117">Description: Obtains the number of temporary files created in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p9126112913212">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1491036152013"><h4 class="sectiontitle">pg_stat_get_db_total_temp_files(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1126152922110">Description: Obtains the total number of temporary files created in a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of temporary files created in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1712622912215">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section12179165019209"><h4 class="sectiontitle">pg_stat_get_db_temp_bytes(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1412610290217">Description: Obtains the number of bytes of the temporary files created in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1012752992118">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section158043010215"><h4 class="sectiontitle">pg_stat_get_db_total_temp_bytes(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p91271629122115">Description: Obtains the total number of bytes of the temporary files created in a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the number of bytes of the temporary files created in a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p161271429172113">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section5370131215215"><h4 class="sectiontitle">pg_stat_get_db_blk_read_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p61272029142112">Description: Obtains the time required for reading data blocks from a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p17127629122116">Return type: double</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1882052110215"><h4 class="sectiontitle">pg_stat_get_db_total_blk_read_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p2128112942116">Description: Obtains the total time required for reading data blocks from a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the time required for reading data blocks from a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1112812292210">Return type: double</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section7582165482213"><h4 class="sectiontitle">pg_stat_get_db_blk_write_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1712822911214">Description: Obtains the time required for writing data blocks to a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p201281529172116">Return type: double</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section20242919202320"><h4 class="sectiontitle">pg_stat_get_db_total_blk_write_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p121291029112117">Description: Obtains the total time required for writing data blocks to a specified database on all DNs in a cluster (if this function is executed on a CN), or obtains the time required for writing data blocks to a specified database on the current instance (if this function is executed on a DN).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p512982917218">Return type: double</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section69827326238"><h4 class="sectiontitle">pg_stat_get_numscans(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p11295299212">Description: Number of sequential row scans done if parameters are in a table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1812982920214">or number of index scans done if parameters are in an index</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p13129429152110">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section4444448123716"><a name="EN-US_TOPIC_0000001188270492__section4444448123716"></a><a name="section4444448123716"></a><h4 class="sectiontitle">pg_stat_get_tuple()</h4><p id="EN-US_TOPIC_0000001188270492__p6433114812372">Description: This function can be executed on both CNs and DNs. This function is supported only by version 8.1.3 or later clusters.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p94332048153718">If no parameters are specified, this function queries the statistics of all system catalogs on CNs, the dirty page rate of the tables on each CN, the statistics of all system catalogs and user catalogs on DNs, and the dirty page rate of the tables on each DN.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p243314483373">If the schema name and table name are specified, this function queries the statistics and dirty page rate of the specified table.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188270492__note1343354873710"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188270492__p1843310486376">The statistics of this function depend on the <strong id="EN-US_TOPIC_0000001188270492__b155553520498">ANALYZE</strong> operation. To obtain the most accurate information, perform the <strong id="EN-US_TOPIC_0000001188270492__b1255519516497">ANALYZE</strong> operation on the table first.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001188270492__p6433114816376">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p174341248133712">The following table describes return columns.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188270492__table14444124814374" frame="border" border="1" rules="all"><caption><b>Table 1 </b>pg_stat_get_tuple() return fields</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188270492__row204341948173711"><th align="left" class="cellrowborder" valign="top" width="23%" id="mcps1.3.37.8.2.4.1.1"><p id="EN-US_TOPIC_0000001188270492__p5434134815373">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.490000000000002%" id="mcps1.3.37.8.2.4.1.2"><p id="EN-US_TOPIC_0000001188270492__p54341948203712">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="52.51%" id="mcps1.3.37.8.2.4.1.3"><p id="EN-US_TOPIC_0000001188270492__p7434154811377">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188270492__row12435144814373"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p0435134843713">nodename</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p343574812379">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p543514883712">Node name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row243514893713"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p343510483374">tableid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p9435848143713">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p8435144823716">Table OID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row124361548133710"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p154356486370">partid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p104365483373">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p2043674818374">Partition OID of the partitioned table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1436174873713"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p17436174813715">last_vacuum</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p11436184815378">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p15436948103718">Time of the last manual <strong id="EN-US_TOPIC_0000001188270492__b17118845819409">VACUUM</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row4437194811377"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p6436164883713">last_autovacuum</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p9437648173713">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p16437194873711">Time of the last <strong id="EN-US_TOPIC_0000001188270492__b20057612019409">AUTOVACUUM</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1743744893715"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p14376488375">last_analyze</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p2437104817378">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p4437174818379">Time of the last manual <strong id="EN-US_TOPIC_0000001188270492__b19717565729409">ANALYZE</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row134374487374"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p19437154810377">last_autoanalyze</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p10437548143714">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p3437748123714">Time of the last <strong id="EN-US_TOPIC_0000001188270492__b18014056469409">AUTOANALYZE</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row24387487374"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p6438194813718">vacuum_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p643864853713">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p18438174863717">Number of times <strong id="EN-US_TOPIC_0000001188270492__b5335698029409">VACUUM</strong> operations</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1443817481373"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p11438164873715">autovacuum_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p643810485372">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1443811482379">Number of <strong id="EN-US_TOPIC_0000001188270492__b7764341249409">AUTOVACUUM</strong> operations</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1643954863716"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p043894803711">analyze_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p18438248203714">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p10438104813376">Number of <strong id="EN-US_TOPIC_0000001188270492__b17504383449409">ANALYZE</strong> operations</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1543915483371"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p1243934893713">autoanalyze_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p5439748183711">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1143934814372">Number of <strong id="EN-US_TOPIC_0000001188270492__b19055573319409">AUTOANALYZE_COUNT</strong> operations</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row184391248203713"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p144398485377">n_tup_ins</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p1243984819372">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p3439104814377">Number of rows inserted</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1744084803713"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p14439184814371">n_tup_upd</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p344013481375">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p19440114812371">Number of rows updated</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row14411248153710"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p24408489372">n_tup_del</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p24400485376">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1441144819376">Number of rows deleted</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row16441348183719"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p844115489379">n_tup_hot_upd</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p11441248153720">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p144154843711">Number of rows with HOT updates</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row344244811376"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p114411348203720">n_tup_change</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p944264813372">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p244294823719">Number of changed rows after <strong id="EN-US_TOPIC_0000001188270492__b7756439389409">ANALYZE</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row14443124873720"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p104421648153716">n_live_tup</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p10442124833717">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p10442114883714">Estimated number of live rows</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row20443648113716"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p124434483374">n_dead_tup</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p18443124813378">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p644334814371">Estimated number of dead rows</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row19443748113720"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p164431848153712">dirty_rate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p24437485371">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p11443104853712">Dirty page rate of a single CN or DN</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row74441448163717"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.37.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p5443124816378">last_data_changed</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.490000000000002%" headers="mcps1.3.37.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p2444194817374">timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="52.51%" headers="mcps1.3.37.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p844420485376">Time when a table was last modified</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1814304710234"><h4 class="sectiontitle">pg_stat_get_tuples_returned(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p171301929142114">Description: Number of sequential row scans done if parameters are in a table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p413042914215">or number of index entries returned if parameters are in an index</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p8130102912219">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section525045713233"><h4 class="sectiontitle">pg_stat_get_tuples_fetched(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1913012299216">Description: Number of table rows fetched by bitmap scans if parameters are in a table, </p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1013162912218">or table rows fetched by simple index scans using the index if parameters are in an index</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p11311629192118">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section12173117240"><h4 class="sectiontitle">pg_stat_get_tuples_inserted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p19131182918213">Description: Number of rows inserted into table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p121313293212">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section98661323182411"><h4 class="sectiontitle">pg_stat_get_local_tuples_inserted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p111321229152118">Description: Number of rows inserted into the table on the current node. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p513217296214">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section5342163411248"><h4 class="sectiontitle">pg_stat_get_tuples_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p161321929152118">Description: Number of rows updated in table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p14133112918213">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1592144122417"><h4 class="sectiontitle">pg_stat_get_local_tuples_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p8133112912114">Description: Number of rows updated in the table on the current node. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p91330294211">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section92191456152416"><h4 class="sectiontitle">pg_stat_get_tuples_deleted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p913382917219">Description: Number of rows deleted from table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p151331829192114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section68746822511"><h4 class="sectiontitle">pg_stat_get_local_tuples_deleted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p151341929162120">Description: Number of rows deleted from the table on the current node. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p4134829182114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1778611712513"><h4 class="sectiontitle">pg_stat_get_tuples_changed(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p3134229202116">Description: Queries the function on a CN and returns the total number of inserted, updated, and deleted rows in the table since the last <strong id="EN-US_TOPIC_0000001188270492__b1220418263418">ANALYZE</strong> or <strong id="EN-US_TOPIC_0000001188270492__b77960305412">AUTOANALYZE</strong> operation. Queries the function on a DN and returns the total number of inserted, updated, and deleted rows in the table since the last <strong id="EN-US_TOPIC_0000001188270492__b2622144417519">ANALYZE</strong> or <strong id="EN-US_TOPIC_0000001188270492__b76221544458">AUTOANALYZE</strong> operation on the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1613442992111">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section184491423202618"><h4 class="sectiontitle">pg_stat_get_local_tuples_changed(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p17135429172110">Description: Number of inserted, updated, and deleted rows in the table since the last <strong id="EN-US_TOPIC_0000001188270492__b14364371075">ANALYZE</strong> or <strong id="EN-US_TOPIC_0000001188270492__b103641871577">AUTOANALYZE</strong> operation on the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1813511295217">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section5760236192716"><h4 class="sectiontitle">pg_stat_get_tuples_hot_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p12135162902116">Description: Number of rows HOT-updated in table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1213518294212">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section176925458279"><h4 class="sectiontitle">pg_stat_get_local_tuples_hot_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p19136429192111">Description: Number of rows with HOT updates in the table on the current node. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p19136192922115">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section094385752710"><h4 class="sectiontitle">pg_stat_get_live_tuples(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p101361295214">Description: Number of live tuples in the table.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p71361529122112">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section128721324122817"><h4 class="sectiontitle">pg_stat_get_local_live_tuples(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1113716297211">Description: Number of live tuples in the table on the current node. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p21377291219">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section16496103352813"><h4 class="sectiontitle">pg_stat_get_dead_tuples(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1113710296215">Description: Number of dead tuples in the table.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p12137202922117">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section15937458285"><h4 class="sectiontitle">pg_stat_get_local_dead_tuples(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p18138132972114">Description: Number of dead tuples in the table on the current node. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1913802915212">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section763016177296"><h4 class="sectiontitle">pg_stat_get_blocks_fetched(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p513822992113">Description: Number of disk block fetch requests for table or index</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p18138142918211">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section3196132810291"><h4 class="sectiontitle">pg_stat_get_blocks_hit(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p613972911211">Description: Number of disk block requests found in cache for table or index</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p15139172902116">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section78981639202915"><h4 class="sectiontitle">pg_stat_get_partition_tuples_inserted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p10139229192110">Description: Number of rows in the corresponding table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p15139102913211">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1685255420295"><h4 class="sectiontitle">pg_stat_get_partition_tuples_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p101403295219">Description: Number of rows that have been updated in the corresponding table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1914042962113">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section470835123013"><h4 class="sectiontitle">pg_stat_get_partition_tuples_deleted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p20140429132120">Description: Number of rows deleted from the corresponding table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p101401729162119">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section18985128203011"><h4 class="sectiontitle">pg_stat_get_partition_tuples_changed(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p41411729122115">Description: Total number of inserted, updated, and deleted rows after the table partition was last analyzed or autoanalyzed</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p17141329122119">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1166816497302"><h4 class="sectiontitle">pg_stat_get_partition_live_tuples(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1914117297211">Description: Number of live rows in a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p13141172982118">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section83351459173010"><h4 class="sectiontitle">pg_stat_get_partition_dead_tuples(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p19142172902117">Description: Number of dead rows in a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p12142629192114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section6774168183114"><h4 class="sectiontitle">pg_stat_get_xact_tuples_inserted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p314212912118">Description: Number of tuple inserted into the active subtransactions related to the table.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p514217291217">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section3226327103119"><h4 class="sectiontitle">pg_stat_get_xact_tuples_deleted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p8143129192110">Description: Number of deleted tuples in the active subtransactions related to a table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1614314295211">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section142673913115"><h4 class="sectiontitle">pg_stat_get_xact_tuples_hot_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p514320292216">Description: Number of hot updated tuples in the active subtransactions related to a table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1144182952114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section283055543113"><h4 class="sectiontitle">pg_stat_get_xact_tuples_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p514416299216">Description: Number of updated tuples in the active subtransactions related to a table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p7144329192114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section421966203214"><h4 class="sectiontitle">pg_stat_get_xact_partition_tuples_inserted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p01441629112113">Description: Number of inserted tuples in the active subtransactions related to a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p141455298212">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section2066251516322"><h4 class="sectiontitle">pg_stat_get_xact_partition_tuples_deleted(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1145132922112">Description: Number of deleted tuples in the active subtransactions related to a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p10145172912215">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section652892510325"><h4 class="sectiontitle">pg_stat_get_xact_partition_tuples_hot_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p21451829112110">Description: Number of hot updated tuples in the active subtransactions related to a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p171466292216">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1141823573211"><h4 class="sectiontitle">pg_stat_get_xact_partition_tuples_updated(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p111461729142112">Description: Number of updated tuples in the active subtransactions related to a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1214682992116">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section94891644183216"><h4 class="sectiontitle">pg_stat_get_last_vacuum_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p814622915216">Description: Last time when the autovacuum thread is manually started to clear a table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p6147429172115">Return type: timestamptz</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section76976214332"><h4 class="sectiontitle">pg_stat_get_last_autovacuum_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p121474299219">Description: Time of the last vacuum initiated by the autovacuum thread on this table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p214719296211">Return type: timestamptz</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section12307613103314"><h4 class="sectiontitle">pg_stat_get_local_last_autovacuum_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p6148182918217">Description: Time of the last vacuum initiated by the autovacuum thread of the current node on this table. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p2148729102120">Return type: timestamptz</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section935016251339"><h4 class="sectiontitle">pg_stat_get_vacuum_count(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p51487292218">Description: Number of times a table is manually cleared</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1814810294210">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section10374163710333"><h4 class="sectiontitle">pg_stat_get_autovacuum_count(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p18149529112114">Description: Number of times of vacuum initiated by the autovacuum thread on this table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p15149152992112">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section09701446340"><h4 class="sectiontitle">pg_stat_get_local_autovacuum_count(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p7149102972113">Description: Number of times of vacuum initiated by the autovacuum thread of the current node on this table. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1314912902111">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section858705412349"><h4 class="sectiontitle">pg_stat_get_last_analyze_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p615042952112">Description: Last time when a table starts to be analyzed manually or by the autovacuum thread</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p715062915219">Return type: timestamptz</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section142018415350"><h4 class="sectiontitle">pg_stat_get_last_autoanalyze_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p101501429202111">Description: Time of the last analysis initiated by the autovacuum thread on this table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p9150122942116">Return type: timestamptz</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section18702132116354"><h4 class="sectiontitle">pg_stat_get_local_last_autoanalyze_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p121511029102111">Description: Time of the last analysis initiated by the autovacuum thread of the current node on this table. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p7152162916219">Return type: timestamptz</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1485543183511"><h4 class="sectiontitle">pg_stat_get_analyze_count(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1915214291217">Description: Number of times a table is manually analyzed</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p10152162922116">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section413914219359"><h4 class="sectiontitle">pg_stat_get_autoanalyze_count(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1015312291217">Description: Number of times the autovacuum daemon analyzes a table</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p015317294216">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section583975318353"><h4 class="sectiontitle">pg_stat_get_local_autoanalyze_count(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p215332919215">Description: Number of times that the autovacuum daemon of the current node starts analysis on this table. This function is supported only in 8.1.2 or later.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1115352917218">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section45711673614"><h4 class="sectiontitle">pg_stat_get_local_analyze_status(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p16154229182117">Description: Specifies whether to analyze the status of a table on the current node. This parameter is valid only for CNs. This function is supported only in 8.1.2 or later.</p>
|
|
<ul id="EN-US_TOPIC_0000001188270492__ul3154429162116"><li id="EN-US_TOPIC_0000001188270492__li1315418296216">If the number of modified rows in the table exceeds the ANALYZE threshold (calculated based on autovacuum_analyze_threshold + autovacuum_analyze_scale_factor x reltuples, where <strong id="EN-US_TOPIC_0000001188270492__b17536571254">reltuples</strong> is the estimated number of rows in the table recorded in <strong id="EN-US_TOPIC_0000001188270492__b145385717514">pg_class</strong>), <strong id="EN-US_TOPIC_0000001188270492__b7549571057">Analyze needed</strong> is returned.</li><li id="EN-US_TOPIC_0000001188270492__li515416292213">If the number of modified rows in the table does not exceed the threshold of <strong id="EN-US_TOPIC_0000001188270492__b79741412182419">analyze</strong>, the message <strong id="EN-US_TOPIC_0000001188270492__b199741112172415">Analyze not needed</strong> is returned.</li><li id="EN-US_TOPIC_0000001188270492__li111545291217">If the table is being analyzed, the message <strong id="EN-US_TOPIC_0000001188270492__b5222171832411">Analyze in progress</strong> is returned.</li><li id="EN-US_TOPIC_0000001188270492__li19155112902119">If whether to analyze the table is unknown, the message <strong id="EN-US_TOPIC_0000001188270492__b19355724102417">Unknown analyze status</strong> is returned.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001188270492__p13155132992117">Return type: text</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section679751763610"><h4 class="sectiontitle">pg_total_autovac_tuples(bool)</h4><p id="EN-US_TOPIC_0000001188270492__p11551529122112">Description: Gets the tuple records related to <strong id="EN-US_TOPIC_0000001188270492__b730092417411">total autovac</strong>, such as <strong id="EN-US_TOPIC_0000001188270492__b255517254411">nodename</strong>, <strong id="EN-US_TOPIC_0000001188270492__b91791227343">nspname</strong>, <strong id="EN-US_TOPIC_0000001188270492__b1710519288417">relname</strong>, and the IUD information of tuples.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p16155162920211">Return type: SETOF record</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p124882351014">pg_autovac_status(oid)</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p01561329192113">Description: Returns autovac information, such as <strong id="EN-US_TOPIC_0000001188270492__b13509165416367">nodename</strong>, <strong id="EN-US_TOPIC_0000001188270492__b185091754153611">nspname</strong>, <strong id="EN-US_TOPIC_0000001188270492__b550945413616">relname</strong>, <strong id="EN-US_TOPIC_0000001188270492__b135101854183616">analyze</strong>, <strong id="EN-US_TOPIC_0000001188270492__b1751085423614">vacuum</strong>, thresholds of <strong id="EN-US_TOPIC_0000001188270492__b19511145413620">analyze</strong> and <strong id="EN-US_TOPIC_0000001188270492__b1651114548369">vacuum</strong>, and the number of analyzed or vacuumed tuples.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p315632972120">Return type: SETOF record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section197991337113618"><h4 class="sectiontitle">pg_autovac_timeout(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p151561429102110">Description: Returns the number of consecutive timeouts during the autovac operation on a table. If the table information is invalid or the node information is abnormal, <strong id="EN-US_TOPIC_0000001188270492__b2434518162020">NULL</strong> will be returned.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p19156929102115">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section6402204716361"><h4 class="sectiontitle">pg_autovac_coordinator(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p31573290218">Description: Returns the name of the CN performing the autovac operation on a table. If the table information is invalid or the node information is abnormal, <strong id="EN-US_TOPIC_0000001188270492__b89561725172116">NULL</strong> will be returned.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1815718293212">Return type: text</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section17986141123716"><h4 class="sectiontitle">pgxc_get_wlm_session_info_bytime(text, timestamp without time zone, timestamp without time zone, int)</h4><p id="EN-US_TOPIC_0000001188270492__p9157529192111">Description: The query performance of the PGXC_WLM_SESSION_INFO view is poor if the view contains a large number of records. In this case, you are advised to use this function to filter the query. The input parameters are <em id="EN-US_TOPIC_0000001188270492__i91273501710">time column</em> (<strong id="EN-US_TOPIC_0000001188270492__b971814103818">start_time</strong> or <strong id="EN-US_TOPIC_0000001188270492__b1688312131586">finish_time</strong>), <em id="EN-US_TOPIC_0000001188270492__i68231224283">start time</em>, <em id="EN-US_TOPIC_0000001188270492__i10310112919818">end time</em>, and <em id="EN-US_TOPIC_0000001188270492__i177216441485">maximum number of records returned for each CN</em>. The return result is a subset of records in the <strong id="EN-US_TOPIC_0000001188270492__b292524252417">GS_WLM_SESSION_HISTORY</strong> view.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p71572299218">Return type: SETOF record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section10338111915373"><h4 class="sectiontitle">pgxc_get_wlm_current_instance_info(text, int default null)</h4><p id="EN-US_TOPIC_0000001188270492__p13158172916211">Description: Queries the current resource usage of each node in the cluster on the CN and reads the data that is not stored in the GS_WLM_INSTANCE_HISTORY system catalog in the memory. The input parameters are the node name (<strong id="EN-US_TOPIC_0000001188270492__b261936165113">ALL</strong>, <strong id="EN-US_TOPIC_0000001188270492__b1145053945111">C</strong>, <strong id="EN-US_TOPIC_0000001188270492__b1363194312518">D</strong>, or <em id="EN-US_TOPIC_0000001188270492__i4506164715112">instance name</em>) and the maximum number of records returned by each node. The returned value is <strong id="EN-US_TOPIC_0000001188270492__b212216411529">GS_WLM_INSTANCE_HISTORY</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p015812918214">Return type: SETOF record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section496632473818"><h4 class="sectiontitle">pgxc_get_wlm_history_instance_info(text, TIMESTAMP, TIMESTAMP, int default null)</h4><p id="EN-US_TOPIC_0000001188270492__p6158329102117">Description: Queries the historical resource usage of each cluster node on the CN node and reads data from the <strong id="EN-US_TOPIC_0000001188270492__b453563910520">GS_WLM_INSTANCE_HISTORY</strong> system catalog. The input parameters are as follows: node name (<strong id="EN-US_TOPIC_0000001188270492__b461194912524">ALL</strong>, <strong id="EN-US_TOPIC_0000001188270492__b17711125214522">C</strong>, <strong id="EN-US_TOPIC_0000001188270492__b19139135618528">D</strong>, or <em id="EN-US_TOPIC_0000001188270492__i12984170195315">instance name</em>), start time, end time, and maximum number of records returned for each instance. The returned value is <strong id="EN-US_TOPIC_0000001188270492__b1516151720521">GS_WLM_INSTANCE_HISTORY</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p31581629152120">Return type: SETOF record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section103539348380"><h4 class="sectiontitle">pg_stat_get_last_data_changed_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p9158142952114">Description: Returns the time when <strong id="EN-US_TOPIC_0000001188270492__b6222133212176">INSERT</strong>, <strong id="EN-US_TOPIC_0000001188270492__b62231832131715">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001188270492__b32231932191720">DELETE</strong>, or <strong id="EN-US_TOPIC_0000001188270492__b1122410323174">EXCHANGE</strong>/<strong id="EN-US_TOPIC_0000001188270492__b1122583214171">DROP</strong> <strong id="EN-US_TOPIC_0000001188270492__b4226932161713">PARTITION</strong> was performed last time on a table. The data in the <strong id="EN-US_TOPIC_0000001188270492__b222733261717">last_data_changed</strong> column of the PG_STAT_ALL_TABLES view is calculated by using this function. The performance of obtaining the last modification time by using the view is poor when the table has a large amount of data. In this case, you are advised to use the function.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p161594295217">Return type: timestamptz</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section199343432388"><h4 class="sectiontitle">pg_stat_set_last_data_changed_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p2159162962112">Description: Manually changes the time when <strong id="EN-US_TOPIC_0000001188270492__b4230123614177">INSERT</strong>, <strong id="EN-US_TOPIC_0000001188270492__b14231173631718">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001188270492__b1723119363179">DELETE</strong>, or <strong id="EN-US_TOPIC_0000001188270492__b1023215363171">EXCHANGE</strong>/<strong id="EN-US_TOPIC_0000001188270492__b11232143610172">TRUNCATE</strong>/<strong id="EN-US_TOPIC_0000001188270492__b1233203617173">DROP</strong> <strong id="EN-US_TOPIC_0000001188270492__b92348369176">PARTITION</strong> was performed last time.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p17159629152119">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section15370151173913"><h4 class="sectiontitle">pv_session_time()</h4><p id="EN-US_TOPIC_0000001188270492__p1417016296212">Description: Collects statistics on the running time of each session thread on the current node and the time consumed in each execution phase.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p71701229112118">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section276132533911"><h4 class="sectiontitle">pv_instance_time()</h4><p id="EN-US_TOPIC_0000001188270492__p91711029112116">Description: Collects statistics on the running time of the current node and the time consumed in each execution phase.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p217122982120">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section5638193416393"><h4 class="sectiontitle">pg_stat_get_activity(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p131714294215">Description: Returns a record about the backend with the specified PID. A record for each active backend in the system is returned if <strong id="EN-US_TOPIC_0000001188270492__b842352706173439">NULL</strong> is specified. The return result is a subset of records (excluding the <strong id="EN-US_TOPIC_0000001188270492__b5448642152612">connection_info</strong> column) in the PG_STAT_ACTIVITY view.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p21721129112115">Return type: SETOF record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section18952344183919"><h4 class="sectiontitle">pg_stat_get_activity_with_conninfo(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p151721729162113">Description: Returns a record about the backend with the specified PID. A record for each active backend in the system is returned if <strong id="EN-US_TOPIC_0000001188270492__b571312382172">NULL</strong> is specified. The return result is a subset of records in the <strong id="EN-US_TOPIC_0000001188270492__b353960112512">PG_STAT_ACTIVITY</strong> view.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1717262916212">Return type: SETOF record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1278518854017"><h4 class="sectiontitle">pg_user_iostat(text)</h4><p id="EN-US_TOPIC_0000001188270492__p7172929142116">Description: This function has been discarded in version 8.1.2 and is reserved for compatibility with earlier versions. This function is invalid in the current version.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p61731429122116">Return type: record</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188270492__table16173329112119" frame="border" border="1" rules="all"><caption><b>Table 2 </b>pg_user_iostat(text) return fields</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188270492__row11426631846"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.95.4.2.4.1.1"><p id="EN-US_TOPIC_0000001188270492__p111754298219">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.95.4.2.4.1.2"><p id="EN-US_TOPIC_0000001188270492__p017652982118">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="65%" id="mcps1.3.95.4.2.4.1.3"><p id="EN-US_TOPIC_0000001188270492__p51761229162116">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188270492__row74262318415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.95.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p1317602952120">userid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.95.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p19177102962113">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.95.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p117762952110">User ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row7426039410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.95.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p15177172911215">min_curr_iops</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.95.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p317892918213">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.95.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p151784291211">Minimum I/O of the current user across DNs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row2426123642"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.95.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p20178102912216">max_curr_iops</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.95.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p1517962922112">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.95.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p8179152982111">Maximum I/O of the current user across DNs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row542653546"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.95.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p0179329172112">min_peak_iops</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.95.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p181801729102112">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.95.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p201801729162117">Minimum peak I/O of the current user across DNs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row3426933419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.95.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p111805295214">max_peak_iops</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.95.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p6181229122112">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.95.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p218142916216">Maximum peak I/O of the current user across DNs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row4426834414"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.95.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p1318272915216">io_limits</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.95.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p51825292210">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.95.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1418232912119"><strong id="EN-US_TOPIC_0000001188270492__b84235270614289">io_limits</strong> set for the resource pool specified by the user.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row942753841"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.95.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p191831129162118">io_priority</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.95.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p15183112972120">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.95.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1418302902115"><strong id="EN-US_TOPIC_0000001188270492__b842352706142815">io_priority</strong> set for the user.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section7810421164012"><h4 class="sectiontitle">pg_stat_get_function_calls(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p218418297210">Description: Number of times the function has been called</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p418412972116">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section99831932124013"><h4 class="sectiontitle">pg_stat_get_function_total_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p018432913213">Description: Gets the total wall-clock time spent on a function, in microseconds. The time spent on calling this function is included.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p91841229152110">Return type: double precision</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1313518562405"><h4 class="sectiontitle">pg_stat_get_function_self_time(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p618552917213">Description: Gets the time spent only on this function in the current transaction. The time spent on calling this function is not included.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1718572912115">Return type: double precision</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1796510510414"><h4 class="sectiontitle">pg_stat_get_backend_idset()</h4><p id="EN-US_TOPIC_0000001188270492__p11185192917219">Description: Set of currently active server process numbers (from 1 to the number of active server processes)</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p16185162920214">Return type: setofinteger</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section74961323134111"><h4 class="sectiontitle">pg_stat_get_backend_pid(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p418552914213">Description: Thread ID of the given server thread</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p718615292213">Return type: bigint</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188270492__screen121862294214"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">pg_stat_get_backend_pid</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span>
|
|
<span class="w"> </span><span class="n">pg_stat_get_backend_pid</span><span class="w"> </span>
|
|
<span class="c1">-------------------------</span>
|
|
<span class="w"> </span><span class="mi">139706243217168</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section4892164624110"><h4 class="sectiontitle">pg_stat_get_backend_dbid(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p418732962120">Description: ID of the database connected to the given server process</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1187102902112">Return type: OID</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1256995784113"><h4 class="sectiontitle">pg_stat_get_backend_userid(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p131879298218">Description: User ID of the given server process</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p31871229192116">Return type: OID</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section20865172184211"><h4 class="sectiontitle">pg_stat_get_backend_activity(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p9188112912114">Description: Active command of the given server process, but only if the current user is a system administrator or the same user as that of the session being queried and <strong id="EN-US_TOPIC_0000001188270492__b842352706174350">track_activities</strong> is on</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p101881929122115">Return type: text</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1384483312426"><h4 class="sectiontitle">pg_stat_get_backend_waiting(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p718862920214">Description: True if the given server process is waiting for a lock, but only if the current user is a system administrator or the same user as that of the session being queried and <strong id="EN-US_TOPIC_0000001188270492__b842352706174338">track_activities</strong> is on</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p4188102952111">Return type: <span id="EN-US_TOPIC_0000001188270492__text1037425912225">boolean</span></p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section14835174320426"><h4 class="sectiontitle">pg_stat_get_backend_activity_start(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p1318982952120">Description: The time at which the given server process's currently executing query was started, but only if the current user is a system administrator or the same user as that of the session being queried and <strong id="EN-US_TOPIC_0000001188270492__b842352706174327">track_activities</strong> is on</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p218914299219">Return type: timestamp with time zone</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section112010540424"><h4 class="sectiontitle">pg_stat_get_backend_xact_start(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p7189112917213">Description: The time at which the given server process's currently executing transaction was started, but only if the current user is a system administrator or the same user as that of the session being queried and <strong id="EN-US_TOPIC_0000001188270492__b842352706174318">track_activities</strong> is on</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1518972917215">Return type: timestamp with time zone</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1492125184314"><h4 class="sectiontitle">pg_stat_get_backend_start(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p1119012972110">Description: The time at which the given server process was started, or <strong id="EN-US_TOPIC_0000001188270492__b6583165734613">NULL</strong> if the current user is neither a system administrator nor the same user as that of the session being queried</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p111909295219">Return type: timestamp with time zone</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section196019149437"><h4 class="sectiontitle">pg_stat_get_backend_client_addr(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p1819017291212">Description: IP address of the client connected to the given server process.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1019052916211">If the connection is over a Unix domain socket, or if the current user is neither a system administrator nor the same user as that of the session being queried, <strong id="EN-US_TOPIC_0000001188270492__b5774939238">NULL</strong> will be returned.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1119012297217">Return type: inet</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p119072919218">Note: An IP address used as an input parameter of this function cannot contain periods (.). For example, <strong id="EN-US_TOPIC_0000001188270492__b36841357181415">192.168.100.128</strong> should be written as <strong id="EN-US_TOPIC_0000001188270492__b1586665211142">192168100128</strong>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section03631627114316"><h4 class="sectiontitle">pg_stat_get_backend_client_port(integer)</h4><p id="EN-US_TOPIC_0000001188270492__p14191102915212">Description: TCP port number of the client connected to the given server process</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p181911929112112">If the connection is over a Unix domain socket, <strong id="EN-US_TOPIC_0000001188270492__b56871855224">-1</strong> will be returned. If the current user is neither a system administrator nor the same user as that of the session being queried, <strong id="EN-US_TOPIC_0000001188270492__b18419144218220">NULL</strong> will be returned.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p3191202914214">Return type: integer</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section10560154474310"><h4 class="sectiontitle">pg_stat_get_bgwriter_timed_checkpoints()</h4><p id="EN-US_TOPIC_0000001188270492__p91911529112116">Description: The number of times the background writer has started timed checkpoints (because the <strong id="EN-US_TOPIC_0000001188270492__b842352706174920">checkpoint_timeout</strong> time has expired)</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p19191329112116">Return type: bigint</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p174931739108">pg_stat_get_bgwriter_requested_checkpoints()</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p10192129122115">Description: The number of times the background writer has started checkpoints based on requests from the backend because <strong id="EN-US_TOPIC_0000001188270492__b683918378589">checkpoint_segments</strong> has been exceeded or the <strong id="EN-US_TOPIC_0000001188270492__b842352706174958">CHECKPOINT</strong> command has been executed</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p6192192932114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section126597593438"><h4 class="sectiontitle">pg_stat_get_bgwriter_buf_written_checkpoints()</h4><p id="EN-US_TOPIC_0000001188270492__p9192829162117">Description: The number of buffers written by the background writer during checkpoints</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p5192152992117">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section12310108154411"><h4 class="sectiontitle">pg_stat_get_bgwriter_buf_written_clean()</h4><p id="EN-US_TOPIC_0000001188270492__p31939296211">Description: The number of buffers written by the background writer for routine cleaning of dirty pages</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p319392962114">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section12381734410"><h4 class="sectiontitle">pg_stat_get_bgwriter_maxwritten_clean()</h4><p id="EN-US_TOPIC_0000001188270492__p1419392942118">Description: The number of times the background writer has stopped its cleaning scan because it has written more buffers than specified in the <strong id="EN-US_TOPIC_0000001188270492__b14886800089409">bgwriter_lru_maxpages</strong> parameter</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p5193152912217">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section7837142754418"><h4 class="sectiontitle">pg_stat_get_buf_written_backend()</h4><p id="EN-US_TOPIC_0000001188270492__p119482972117">Description: The number of buffers written by the backend because they needed to allocate a new buffer</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p91942029162117">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1294903734415"><h4 class="sectiontitle">pg_stat_get_buf_alloc()</h4><p id="EN-US_TOPIC_0000001188270492__p121949295217">Description: The total number of buffer allocations</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p0194142902111">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section131889558443"><h4 class="sectiontitle">pg_stat_clear_snapshot()</h4><p id="EN-US_TOPIC_0000001188270492__p819442962111">Description: Discards the current statistics snapshot.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p15195102932119">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section2054913524518"><h4 class="sectiontitle">pg_stat_reset()</h4><p id="EN-US_TOPIC_0000001188270492__p14195729102117">Description: Resets all statistics counters for the current database to zero (requires system administrator permissions).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p12195132915217">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section209059159459"><h4 class="sectiontitle">pg_stat_reset_shared(text)</h4><p id="EN-US_TOPIC_0000001188270492__p51951329102115">Description: Resets all statistics counters for the current database in each node in a shared cluster to zero (requires system administrator permissions).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p191961429142114">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section193691624114513"><h4 class="sectiontitle">pg_stat_reset_single_table_counters(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p9196182982113">Description: Resets statistics for a single table or index in the current database to zero (requires system administrator permissions).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p17196132915211">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section182275332450"><h4 class="sectiontitle">pg_stat_reset_single_function_counters(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p5196112918216">Description: Resets statistics for a single function in the current database to zero (requires system administrator permissions).</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1196192913210">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section7565184315457"><h4 class="sectiontitle">pg_stat_session_cu(int, int, int)</h4><p id="EN-US_TOPIC_0000001188270492__p519719292215">Description: Obtains the compression unit (CU) hit statistics of sessions running on the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1819713294213">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section16766716154719"><h4 class="sectiontitle">gs_get_stat_session_cu(text, int, int, int)</h4><p id="EN-US_TOPIC_0000001188270492__p8197129202117">Description: Obtains the CU hit statistics of all sessions running in a cluster.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p19197192911216">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section118131034184715"><h4 class="sectiontitle">gs_get_stat_db_cu(text, text, bigint, bigint, bigint)</h4><p id="EN-US_TOPIC_0000001188270492__p181982029142114">Description: Obtains the CU hit statistics of a database in a cluster.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p16199429102117">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section0726537473"><h4 class="sectiontitle">pg_stat_get_cu_mem_hit(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p2199202912119">Description: Obtains the number of CU memory hits of a column storage table in the current database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p18199102915212">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section19469683482"><h4 class="sectiontitle">pg_stat_get_cu_hdd_sync(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1220072911219">Description: Obtains the number of times CU is synchronously read from a disk by a column-store table in the current database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1200112919214">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section491193112481"><h4 class="sectiontitle">pg_stat_get_cu_hdd_asyn(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p120032912113">Description: Obtains the number of times CU is asynchronously read from a disk by a column-store table in the current database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p52009295216">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section125247114810"><h4 class="sectiontitle">pg_stat_get_db_cu_mem_hit(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p6201229102113">Description: Obtains the CU memory hit in a database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p6201112915219">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section06971557104812"><h4 class="sectiontitle">pg_stat_get_db_cu_hdd_sync(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p1720110291216">Description: Obtains the times CU is synchronously read from a disk by a database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p220172972113">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section240415231493"><h4 class="sectiontitle">pg_stat_get_db_cu_hdd_asyn(oid)</h4><p id="EN-US_TOPIC_0000001188270492__p152171329192110">Description: Obtains the times CU is asynchronously read from a disk by a database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p14217529142113">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section010123454919"><h4 class="sectiontitle">pgxc_fenced_udf_process()</h4><p id="EN-US_TOPIC_0000001188270492__p1621892972118">Description: Shows the number of UDF Master and Work processes.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p42180295218">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section248518449493"><h4 class="sectiontitle">pgxc_terminate_all_fenced_udf_process()</h4><p id="EN-US_TOPIC_0000001188270492__p1721872916211">Description: Kills all UDF Work processes.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p32181029102115">Return type: bool</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section13974195817494"><h4 class="sectiontitle">GS_ALL_NODEGROUP_CONTROL_GROUP_INFO(text)</h4><div class="p" id="EN-US_TOPIC_0000001188270492__p142191294218">Description: Provides Cgroup information for all logical clusters. Before invoking this function, you need to specify the name of a logical cluster to be queried. For example, to query the Cgroup information for the <strong id="EN-US_TOPIC_0000001188270492__b97065313191">installation</strong> logical cluster, run the following command:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188270492__screen42192298218"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">GS_ALL_NODEGROUP_CONTROL_GROUP_INFO</span><span class="p">(</span><span class="s1">'installation'</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188270492__p721992913218">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p22191295213">The following table describes return columns.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188270492__table021932918210" frame="border" border="1" rules="all"><caption><b>Table 3 </b>GS_ALL_NODEGROUP_CONTROL_GROUP_INFO(text)</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188270492__r2a0276b542d54fd0808927c2c54b0fc6"><th align="left" class="cellrowborder" valign="top" width="23%" id="mcps1.3.132.5.2.4.1.1"><p id="EN-US_TOPIC_0000001188270492__p19222192917219">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.132.5.2.4.1.2"><p id="EN-US_TOPIC_0000001188270492__p19223182915215">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63%" id="mcps1.3.132.5.2.4.1.3"><p id="EN-US_TOPIC_0000001188270492__p622382916212">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188270492__rf8b75b68e6a24e29931035876b3c3dfb"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p11223172982111">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p112241129162115">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p12241829142115">Name of a Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__r685dd7e8104e4020b260711d0d1cf9a9"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p92249291216">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p122562915212">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p17225172913214">Type of the Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__r45542ef0924c49f2a21c540acd3c90e3"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p8225172919217">gid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p1322513292218">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p122642914215">Cgroup ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__ra3bccb8528cd408aa54f8e30557c0359"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p2226152914210">classgid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p1322692972110">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p42273292217">ID of the <strong id="EN-US_TOPIC_0000001188270492__b12732418114">Class</strong> Cgroup where a <strong id="EN-US_TOPIC_0000001188270492__b45219451119">Workload</strong> Cgroup belongs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__rd7538143f1a648d2ae003ee563237226"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p12227329202112">class</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p1522742912211">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1622702952116"><strong id="EN-US_TOPIC_0000001188270492__b1245218316219">Class</strong> Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__ra831355d65f64e7b92f51f84021f4947"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p5228129142120">workload</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p7228529192111">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1622822916211"><strong id="EN-US_TOPIC_0000001188270492__b67031761125">Workload</strong> Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__rdb4c5c3a41fb4325a8c11787c3af82b1"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p422912932120">shares</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p12291329102112">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p102306299215">CPU quota allocated to a Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__r47bd7dff24334c239af7266eeeb52c2b"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p6230122913219">limits</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p5230132915212">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1723013294219">Limit of CPUs allocated to a Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row5504610171814"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p1023192932119">wdlevel</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p82311329142120">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p9231142982110"><strong id="EN-US_TOPIC_0000001188270492__b114084591954">Workload</strong> Cgroup level</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row15968121961816"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.132.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p192321229132111">cpucores</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.132.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p923222913215">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.132.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p122331629152112">Usage of CPU cores in a Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section10861191816502"><h4 class="sectiontitle">gs_get_nodegroup_tablecount(name)</h4><p id="EN-US_TOPIC_0000001188270492__p2233142914211">Description: Total number of user tables in all the databases in a logical cluster</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p15233629142119">Return type: integer</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section186154545503"><h4 class="sectiontitle">pgxc_max_datanode_size(name)</h4><p id="EN-US_TOPIC_0000001188270492__p2234142952114">Description: Maximum disk space occupied by database files in all the DNs of a logical cluster. The unit is byte.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p15234182918216">Return type: bigint</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section6298121214518"><h4 class="sectiontitle">gs_check_logic_cluster_consistency()</h4><p id="EN-US_TOPIC_0000001188270492__p623511291217">Description: Checks whether the system information of all logical clusters in the system is consistent. If no record is returned, the information is consistent. Otherwise, the Node Group information on CNs and DNs in the logical cluster is inconsistent. This function cannot be invoked during redistribution in a scale-in or scale-out.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1523572902114">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1684713155117"><h4 class="sectiontitle">gs_check_tables_distribution()</h4><p id="EN-US_TOPIC_0000001188270492__p1625132913211">Description: Checks whether the user table distribution in the system is consistent. If no record is returned, table distribution is consistent. This function cannot be invoked during redistribution in a scale-in or scale-out.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p1025218296212">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section174285055120"><h4 class="sectiontitle">pg_stat_bad_block(text, int, int, int, int, int, timestamp with time zone, timestamp with time zone)</h4><p id="EN-US_TOPIC_0000001188270492__p825232916219">Description: Obtains damage information about pages or CUs after the current node is started.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p11252182915219">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section1860215593513"><h4 class="sectiontitle">pgxc_stat_bad_block(text, int, int, int, int, int, timestamp with time zone, timestamp with time zone)</h4><p id="EN-US_TOPIC_0000001188270492__p132526293212">Description: Obtains damage information about pages or CUs after all the nodes in the cluster are started.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p3252929172115">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section615771405215"><h4 class="sectiontitle">pg_stat_bad_block_clear()</h4><p id="EN-US_TOPIC_0000001188270492__p1925382942113">Description: Deletes the page and CU damage information that is read and recorded on the node. (System administrator rights are required.)</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p9253162911219">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section15731821125217"><h4 class="sectiontitle">pgxc_stat_bad_block_clear()</h4><p id="EN-US_TOPIC_0000001188270492__p52531229192115">Description: Deletes the page and CU damage information that is read and recorded on all the nodes in the cluster. (System administrator rights are required.)</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p525322902118">Return type: void</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section754315314521"><h4 class="sectiontitle">gs_respool_exception_info(pool text)</h4><p id="EN-US_TOPIC_0000001188270492__p1254132992112">Description: Queries for the query rule of a specified resource pool.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p92543296218">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section360784115529"><h4 class="sectiontitle">gs_control_group_info(pool text)</h4><p id="EN-US_TOPIC_0000001188270492__p225416298211">Description: Queries for information about Cgroups associated with a resource pool.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p625462912219">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p62541529172115">The following information is displayed:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188270492__table112559294212" frame="border" border="1" rules="all"><caption><b>Table 4 </b>gs_control_group_info(pool text) return fields</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188270492__row260919925618"><th align="left" class="cellrowborder" valign="top" width="26.37736226377362%" id="mcps1.3.142.5.2.4.1.1"><p id="EN-US_TOPIC_0000001188270492__p1625732911216">Attribute</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.44715528447155%" id="mcps1.3.142.5.2.4.1.2"><p id="EN-US_TOPIC_0000001188270492__p102581729142116">Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.175482451754824%" id="mcps1.3.142.5.2.4.1.3"><p id="EN-US_TOPIC_0000001188270492__p18258182972115">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188270492__row116109912569"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p425812912213">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p19259029202116">class_a:workload_a1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p7259729112115">Class name and workload name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row06106985619"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p132592029202116">class</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p17260429142113">class_a</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p132606290212"><strong id="EN-US_TOPIC_0000001188270492__b146538471897">Class</strong> Cgroup name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1399384455713"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p1226152917212">workload</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p82611329172116">workload_a1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p17261202916213"><strong id="EN-US_TOPIC_0000001188270492__b1094585119910">Workload</strong> Cgroup name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row8632178185817"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p726152911216">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p1326212982111">DEFWD</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p726217293219">Cgroup type (Top, CLASS, BAKWD, DEFWD, and TSWD)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row19207812135811"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p426202992118">gid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p202631329112110">87</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p112631229172115">Cgroup ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row01967412582"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p17263132916215">shares</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p15264172932115">30</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1026412912213">Percentage of CPU resources to those on the parent node</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1931985165714"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p1626419293213">limits</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p92657294213">0</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p122659297213">Percentage of CPU cores to those on the parent node</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row148871119165810"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p426542982117">rate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p1126632916218">0</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p1026612297216">Allocation ratio in Timeshare</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188270492__row1970717163583"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.142.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001188270492__p426618298215">cpucores</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.142.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001188270492__p426692922112">0-3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.142.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001188270492__p0267829142120">Number of CPU cores</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section34095375312"><h4 class="sectiontitle">gs_wlm_user_resource_info(name text)</h4><p id="EN-US_TOPIC_0000001188270492__p3267102932117">Description: Queries for a user's resource quota and resource usage.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p626714292211">Return type: record</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001188270492__section4219172310388"><h4 class="sectiontitle">pgxc_stat_single_table(schema, talename)</h4><p id="EN-US_TOPIC_0000001188270492__p182168232381">Description: Executed on CNs, with the schema name and table name passed. This function queries the statistics of a single table in the entire database and the dirty page rate of the table on each DN.</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p20216182313812">This function is supported by version 8.1.3 or later clusters.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188270492__note4216723123817"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188270492__p19216132318387">The statistics of this function depend on the <strong id="EN-US_TOPIC_0000001188270492__b109659830684851">ANALYZE</strong> operation. To obtain the most accurate information, perform the <strong id="EN-US_TOPIC_0000001188270492__b2509755084851">ANALYZE</strong> operation on the table first.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001188270492__p17216162315382">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001188270492__p15216162363814">The return value fields are the same as those of the <a href="#EN-US_TOPIC_0000001188270492__section4444448123716">pg_stat_get_tuple()</a> function.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188270492__screen1121952311386"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span>
|
|
<span class="normal">6</span>
|
|
<span class="normal">7</span>
|
|
<span class="normal">8</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pgxc_stat_single_table</span><span class="p">(</span><span class="s1">'public'</span><span class="p">,</span><span class="s1">'t1'</span><span class="p">);</span>
|
|
<span class="w"> </span><span class="n">nodename</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">tableid</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">partid</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">last_vacuum</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">last_autovacuum</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">last_analyze</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">last_autoanalyze</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">vacuum_count</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">autovacuum_count</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">analyze_count</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">autoanalyze_count</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">n_tup_ins</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">n_</span>
|
|
<span class="n">tup_upd</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">n_tup_del</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">n_tup_hot_upd</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">n_tup_change</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">n_live_tup</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">n_dead_tup</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">dirty_rate</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">last_data_changed</span>
|
|
<span class="c1">-----------+---------+--------+------------------------+------------------------+-------------------------------+------------------------+--------------+------------------+---------------+-------------------+-----------+---</span>
|
|
<span class="c1">--------+-----------+---------------+--------------+------------+------------+------------+-------------------</span>
|
|
<span class="w"> </span><span class="n">datanode1</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">1270075</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">2000</span><span class="o">-</span><span class="mi">01</span><span class="o">-</span><span class="mi">01</span><span class="w"> </span><span class="mi">08</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="o">+</span><span class="mi">08</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">2000</span><span class="o">-</span><span class="mi">01</span><span class="o">-</span><span class="mi">01</span><span class="w"> </span><span class="mi">08</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="o">+</span><span class="mi">08</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">2023</span><span class="o">-</span><span class="mi">01</span><span class="o">-</span><span class="mi">09</span><span class="w"> </span><span class="mi">09</span><span class="p">:</span><span class="mi">38</span><span class="p">:</span><span class="mi">43</span><span class="p">.</span><span class="mi">220876</span><span class="o">+</span><span class="mi">08</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">2000</span><span class="o">-</span><span class="mi">01</span><span class="o">-</span><span class="mi">01</span><span class="w"> </span><span class="mi">08</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="o">+</span><span class="mi">08</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span>
|
|
<span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">|</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0027.html">Functions and Operators</a></div>
|
|
</div>
|
|
</div>
|
|
|