forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
520 lines
91 KiB
HTML
520 lines
91 KiB
HTML
<a name="EN-US_TOPIC_0000001145710775"></a><a name="EN-US_TOPIC_0000001145710775"></a>
|
|
|
|
<h1 class="topictitle1">Statistics Information Functions</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001145710775__en-us_topic_0059778627_p179415595211">Statistics information functions are divided into the following two categories: functions that access databases, using the OID of each table or index in a database to mark the database for which statistics are generated; functions that access servers, identified by the server process ID, whose value ranges from 1 to the number of currently active servers.</p>
|
|
<ul id="EN-US_TOPIC_0000001145710775__ufbe7a89d8cf04f2fac7562cf7affb6ab"><li id="EN-US_TOPIC_0000001145710775__lb86d0820034a4106877d0f53597eeaf2">pg_stat_get_db_numbackends(oid)<p id="EN-US_TOPIC_0000001145710775__a767abe6bd6a441c688f6bc01b009fe95"><a name="EN-US_TOPIC_0000001145710775__lb86d0820034a4106877d0f53597eeaf2"></a><a name="lb86d0820034a4106877d0f53597eeaf2"></a>Description: Obtains the number of active server threads of a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__afd8ef83fa55345d48c9d6d0336ef3c18">Return type: integer</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li486519411105">pg_stat_get_db_total_numbackends(oid)<p id="EN-US_TOPIC_0000001145710775__p1986694113106"><a name="EN-US_TOPIC_0000001145710775__li486519411105"></a><a name="li486519411105"></a>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_0000001145710775__p886615416103">Return type: integer</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lffd25764f1484c6a816ef237b4bcb54f">pg_stat_get_db_xact_commit(oid)<p id="EN-US_TOPIC_0000001145710775__a60a21b3ee5e0435e8a372b431075a34c"><a name="EN-US_TOPIC_0000001145710775__lffd25764f1484c6a816ef237b4bcb54f"></a><a name="lffd25764f1484c6a816ef237b4bcb54f"></a>Description: Obtains the number of committed transactions in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a5f7c628e78cc40bfa14db38010144963">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1175017596295">pg_stat_get_db_total_xact_commit(oid)<p id="EN-US_TOPIC_0000001145710775__p1675025972918"><a name="EN-US_TOPIC_0000001145710775__li1175017596295"></a><a name="li1175017596295"></a>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_0000001145710775__p1075025902911">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l5cbedc73678942848dd561dd09a014e9">pg_stat_get_db_xact_rollback(oid)<p id="EN-US_TOPIC_0000001145710775__a6129c84691f6449f8c10227cd006732b"><a name="EN-US_TOPIC_0000001145710775__l5cbedc73678942848dd561dd09a014e9"></a><a name="l5cbedc73678942848dd561dd09a014e9"></a>Description: Obtains the number of rollback transactions in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a260ba37cf9bd438783ec4bd4ea24d687">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li942453143013">pg_stat_get_db_total_xact_rollback(oid)<p id="EN-US_TOPIC_0000001145710775__p1742416318303"><a name="EN-US_TOPIC_0000001145710775__li942453143013"></a><a name="li942453143013"></a>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_0000001145710775__p14241431103011">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lb00a6aef06024d82bd18e4f21f6c027f">pg_stat_get_db_blocks_fetched(oid)<p id="EN-US_TOPIC_0000001145710775__a53f6d29a37d94175856d084446d4f0eb"><a name="EN-US_TOPIC_0000001145710775__lb00a6aef06024d82bd18e4f21f6c027f"></a><a name="lb00a6aef06024d82bd18e4f21f6c027f"></a>Description: Obtains the number of disk block fetch requests in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a9fb874ceb22e4ff286ebae52b1cbaaa5">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li107331952370">pg_stat_get_db_total_blocks_fetched(oid)<p id="EN-US_TOPIC_0000001145710775__p4733165173718"><a name="EN-US_TOPIC_0000001145710775__li107331952370"></a><a name="li107331952370"></a>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_0000001145710775__p273317517372">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l4a798503fd0a4217be490869859176ec">pg_stat_get_db_blocks_hit(oid)<p id="EN-US_TOPIC_0000001145710775__ac5273fcf14ba461d80b1c1534ca4597c"><a name="EN-US_TOPIC_0000001145710775__l4a798503fd0a4217be490869859176ec"></a><a name="l4a798503fd0a4217be490869859176ec"></a>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_0000001145710775__a2cebd436a77547118e91920d6ebf6c4b">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li135611024173812">pg_stat_get_db_total_blocks_hit(oid)<p id="EN-US_TOPIC_0000001145710775__p18561112417382"><a name="EN-US_TOPIC_0000001145710775__li135611024173812"></a><a name="li135611024173812"></a>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_0000001145710775__p115612241388">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l7366b0f4057446dd8aae39fe8c3f651c">pg_stat_get_db_tuples_returned(oid)<p id="EN-US_TOPIC_0000001145710775__aa8c78d52fb0f413cb1ee3f5c04436afa"><a name="EN-US_TOPIC_0000001145710775__l7366b0f4057446dd8aae39fe8c3f651c"></a><a name="l7366b0f4057446dd8aae39fe8c3f651c"></a>Description: Obtains the number of tuples returned for a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a0121049bb31942e7979bd8dea0f623d1">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li6996183312394">pg_stat_get_db_total_tuples_returned(oid)<p id="EN-US_TOPIC_0000001145710775__p4996133203917"><a name="EN-US_TOPIC_0000001145710775__li6996183312394"></a><a name="li6996183312394"></a>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_0000001145710775__p1996733103919">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l8e88fb0fa2bb430a8857e47a1d58a572">pg_stat_get_db_tuples_fetched(oid)<p id="EN-US_TOPIC_0000001145710775__a1270e0bd08bf4748af4c57de551e4289"><a name="EN-US_TOPIC_0000001145710775__l8e88fb0fa2bb430a8857e47a1d58a572"></a><a name="l8e88fb0fa2bb430a8857e47a1d58a572"></a>Description: Obtains the number of tuples read from a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a84cb161d19404d85a61a95b336422797">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li11679121811443">pg_stat_get_db_total_tuples_fetched(oid)<p id="EN-US_TOPIC_0000001145710775__p86791118104412"><a name="EN-US_TOPIC_0000001145710775__li11679121811443"></a><a name="li11679121811443"></a>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_0000001145710775__p15679151854412">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l430ad100267844c5ab77a91656826e49">pg_stat_get_db_tuples_inserted(oid)<p id="EN-US_TOPIC_0000001145710775__a86f6d685d1094f61becf01a7c593ee18"><a name="EN-US_TOPIC_0000001145710775__l430ad100267844c5ab77a91656826e49"></a><a name="l430ad100267844c5ab77a91656826e49"></a>Description: Obtains the number of tuples inserted into a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a4c4bbcc271fd4edbbe901a917fa5f4f4">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li24441113124520">pg_stat_get_db_total_tuples_inserted(oid)<p id="EN-US_TOPIC_0000001145710775__p12445171344518"><a name="EN-US_TOPIC_0000001145710775__li24441113124520"></a><a name="li24441113124520"></a>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_0000001145710775__p19445313204516">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__la7c93e27161b4368899eb92e6c474001">pg_stat_get_db_tuples_updated(oid)<p id="EN-US_TOPIC_0000001145710775__a4c4f411bc05a4ca4889cae407dd83b77"><a name="EN-US_TOPIC_0000001145710775__la7c93e27161b4368899eb92e6c474001"></a><a name="la7c93e27161b4368899eb92e6c474001"></a>Description: Obtains the number of updated tuples in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ac30b4ad247064dc2bb274bbebd6dd335">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li154721518184615">pg_stat_get_db_total_tuples_updated(oid)<p id="EN-US_TOPIC_0000001145710775__p108339190468"><a name="EN-US_TOPIC_0000001145710775__li154721518184615"></a><a name="li154721518184615"></a>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_0000001145710775__p1283311915467">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l8b645d74b71e4a39a43413f5ce14ce36">pg_stat_get_db_tuples_deleted(oid)<p id="EN-US_TOPIC_0000001145710775__a1365245ee872413d93193f0595d83894"><a name="EN-US_TOPIC_0000001145710775__l8b645d74b71e4a39a43413f5ce14ce36"></a><a name="l8b645d74b71e4a39a43413f5ce14ce36"></a>Description: Obtains the number of tuples deleted from a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ac787b847926f49feaf917287f10f99ef">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li469741911484">pg_stat_get_db_total_tuples_deleted(oid)<p id="EN-US_TOPIC_0000001145710775__p18697151954814"><a name="EN-US_TOPIC_0000001145710775__li469741911484"></a><a name="li469741911484"></a>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_0000001145710775__p1969712193485">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li3473135789">pg_stat_get_db_conflict_lock(oid)<p id="EN-US_TOPIC_0000001145710775__p10592137141314"><a name="EN-US_TOPIC_0000001145710775__li3473135789"></a><a name="li3473135789"></a>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_0000001145710775__p1759293720135">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1372175310717">pg_stat_get_db_deadlocks(oid)<p id="EN-US_TOPIC_0000001145710775__p72221234151417"><a name="EN-US_TOPIC_0000001145710775__li1372175310717"></a><a name="li1372175310717"></a>Description: Obtains the number of deadlocks in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p1122214344142">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li993151155211">pg_stat_get_db_total_deadlocks(oid)<p id="EN-US_TOPIC_0000001145710775__p97691228132220"><a name="EN-US_TOPIC_0000001145710775__li993151155211"></a><a name="li993151155211"></a>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_0000001145710775__p1193205195214">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li79314518528">pg_stat_get_db_conflict_all(oid)<p id="EN-US_TOPIC_0000001145710775__p1193351125214"><a name="EN-US_TOPIC_0000001145710775__li79314518528"></a><a name="li79314518528"></a>Description: Obtains the number of conflict recoveries in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p1393185165211">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li3931451135210">pg_stat_get_db_total_conflict_all(oid)<p id="EN-US_TOPIC_0000001145710775__p2093185145211"><a name="EN-US_TOPIC_0000001145710775__li3931451135210"></a><a name="li3931451135210"></a>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_0000001145710775__p15931751205215">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li893175105212">pg_stat_get_db_temp_files(oid)<p id="EN-US_TOPIC_0000001145710775__p10931151165219"><a name="EN-US_TOPIC_0000001145710775__li893175105212"></a><a name="li893175105212"></a>Description: Obtains the number of temporary files created in a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p693115116529">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li119335105210">pg_stat_get_db_total_temp_files(oid)<p id="EN-US_TOPIC_0000001145710775__p593195118524"><a name="EN-US_TOPIC_0000001145710775__li119335105210"></a><a name="li119335105210"></a>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_0000001145710775__p11937512521">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1593205115522">pg_stat_get_db_temp_bytes(oid)<p id="EN-US_TOPIC_0000001145710775__p0933519527"><a name="EN-US_TOPIC_0000001145710775__li1593205115522"></a><a name="li1593205115522"></a>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_0000001145710775__p10931751105210">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li793205185211">pg_stat_get_db_total_temp_bytes(oid)<p id="EN-US_TOPIC_0000001145710775__p393155117524"><a name="EN-US_TOPIC_0000001145710775__li793205185211"></a><a name="li793205185211"></a>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_0000001145710775__p179345112529">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li59412516523">pg_stat_get_db_blk_read_time(oid)<p id="EN-US_TOPIC_0000001145710775__p1594165125214"><a name="EN-US_TOPIC_0000001145710775__li59412516523"></a><a name="li59412516523"></a>Description: Obtains the time required for reading data blocks from a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p169415135210">Return type: double</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li15941513523">pg_stat_get_db_total_blk_read_time(oid)<p id="EN-US_TOPIC_0000001145710775__p19941051105210"><a name="EN-US_TOPIC_0000001145710775__li15941513523"></a><a name="li15941513523"></a>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_0000001145710775__p15943514523">Return type: double</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li69419517527">pg_stat_get_db_blk_write_time(oid)<p id="EN-US_TOPIC_0000001145710775__p694651125214"><a name="EN-US_TOPIC_0000001145710775__li69419517527"></a><a name="li69419517527"></a>Description: Obtains the time required for writing data blocks to a specified database on the current instance.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p89465105217">Return type: double</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li49425135214">pg_stat_get_db_total_blk_write_time(oid)<p id="EN-US_TOPIC_0000001145710775__p1794951175213"><a name="EN-US_TOPIC_0000001145710775__li49425135214"></a><a name="li49425135214"></a>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_0000001145710775__p89465175218">Return type: double</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l6c99bac974ac450eb645ccefba142517">pg_stat_get_numscans(oid)<p id="EN-US_TOPIC_0000001145710775__ac722fabed85d4716b1aaa8087c3bae32"><a name="EN-US_TOPIC_0000001145710775__l6c99bac974ac450eb645ccefba142517"></a><a name="l6c99bac974ac450eb645ccefba142517"></a>Description: Number of sequential row scans done if parameters are in a table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a9d3ac673d60d4adba5af547bf09ae393">or number of index scans done if parameters are in an index</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a708d6c5759e349589def68dcf5cfaabc">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l739a7d4b7e9144a7bfcafe2998638a94">pg_stat_get_tuples_returned(oid)<p id="EN-US_TOPIC_0000001145710775__a41be3c8dbf474684a281b2f20a47d669"><a name="EN-US_TOPIC_0000001145710775__l739a7d4b7e9144a7bfcafe2998638a94"></a><a name="l739a7d4b7e9144a7bfcafe2998638a94"></a>Description: Number of sequential row scans done if parameters are in a table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a7e52029cf78b4f3fa59eff448e84b8ed">or number of index entries returned if parameters are in an index</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__acfbb0ab0bcc4446bafe4f01df921b415">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__ledbbe7049d8542df8697ef059cd9b36f">pg_stat_get_tuples_fetched(oid)<p id="EN-US_TOPIC_0000001145710775__a0fe1d55f265949da9510d30950b6191e"><a name="EN-US_TOPIC_0000001145710775__ledbbe7049d8542df8697ef059cd9b36f"></a><a name="ledbbe7049d8542df8697ef059cd9b36f"></a>Description: Number of table rows fetched by bitmap scans if parameters are in a table, </p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a9c9fbfcfaf484105bf193ce9e4f1396c">or table rows fetched by simple index scans using the index if parameters are in an index</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ab7a33cfbcf744155ac298e62f63c840d">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l5eb975e9175c450eaab87bd4a05de258">pg_stat_get_tuples_inserted(oid)<p id="EN-US_TOPIC_0000001145710775__a00fc408b2e1a42f7ae5c794b533d583a"><a name="EN-US_TOPIC_0000001145710775__l5eb975e9175c450eaab87bd4a05de258"></a><a name="l5eb975e9175c450eaab87bd4a05de258"></a>Description: Number of rows inserted into table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a744252b39b3a4b15843dad50520ea81a">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__laa7762cb75f54977907c8758e5b14152">pg_stat_get_tuples_updated(oid)<p id="EN-US_TOPIC_0000001145710775__abc1702d2daaf4a1aa5759e90fd3c6928"><a name="EN-US_TOPIC_0000001145710775__laa7762cb75f54977907c8758e5b14152"></a><a name="laa7762cb75f54977907c8758e5b14152"></a>Description: Number of rows updated in table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a1e80f5fc908f409297b18e822d420d70">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l664b62ba4f9740babe242eeaa6505e94">pg_stat_get_tuples_deleted(oid)<p id="EN-US_TOPIC_0000001145710775__aee4a7a25d4e24075bd1d7aec62ec6d77"><a name="EN-US_TOPIC_0000001145710775__l664b62ba4f9740babe242eeaa6505e94"></a><a name="l664b62ba4f9740babe242eeaa6505e94"></a>Description: Number of rows deleted from table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ac095658200bc43a99fc07272a6108082">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li124141145152014">pg_stat_get_tuples_changed(oid)<p id="EN-US_TOPIC_0000001145710775__p10418124517205"><a name="EN-US_TOPIC_0000001145710775__li124141145152014"></a><a name="li124141145152014"></a>Description: Total number of inserted, updated, and deleted rows after the table was last analyzed or autoanalyzed</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p441918452202">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l5c9e534f8a6947e7a2526dbe3de8e5a9">pg_stat_get_tuples_hot_updated(oid)<p id="EN-US_TOPIC_0000001145710775__ab5c3a524264046ceaffe636267ba5b4a"><a name="EN-US_TOPIC_0000001145710775__l5c9e534f8a6947e7a2526dbe3de8e5a9"></a><a name="l5c9e534f8a6947e7a2526dbe3de8e5a9"></a>Description: Number of rows HOT-updated in table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__aba4a0eab01b543ffbda6a47033c724a0">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l18c35140f74e40d9ba2399ab134f1b12">pg_stat_get_live_tuples(oid)<p id="EN-US_TOPIC_0000001145710775__ab7cb72e10536466589999cb748ac3723"><a name="EN-US_TOPIC_0000001145710775__l18c35140f74e40d9ba2399ab134f1b12"></a><a name="l18c35140f74e40d9ba2399ab134f1b12"></a>Description: Number of live rows in table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ada146b2879374262a6b584f56d6e50cd">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l351f5b7a7f4042eeab6d11f1c3b514ff">pg_stat_get_dead_tuples(oid)<p id="EN-US_TOPIC_0000001145710775__a5fb6fcb858664db5b14b8e5df5137d04"><a name="EN-US_TOPIC_0000001145710775__l351f5b7a7f4042eeab6d11f1c3b514ff"></a><a name="l351f5b7a7f4042eeab6d11f1c3b514ff"></a>Description: Number of dead rows in table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a331816696b8a427e981d87cc9e97eb8c">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l861d0a59e5684089918476a3adc830b3">pg_stat_get_blocks_fetched(oid)<p id="EN-US_TOPIC_0000001145710775__af570ba932b704ea6ad53e14594ae71dd"><a name="EN-US_TOPIC_0000001145710775__l861d0a59e5684089918476a3adc830b3"></a><a name="l861d0a59e5684089918476a3adc830b3"></a>Description: Number of disk block fetch requests for table or index</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a2616242e3d734135b6b83a3f59e10b58">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l50a6bd847a994dbe87bb3c10539e1a44">pg_stat_get_blocks_hit(oid)<p id="EN-US_TOPIC_0000001145710775__ab35e19cb38ea442d9c2d060e37cbfbf4"><a name="EN-US_TOPIC_0000001145710775__l50a6bd847a994dbe87bb3c10539e1a44"></a><a name="l50a6bd847a994dbe87bb3c10539e1a44"></a>Description: Number of disk block requests found in cache for table or index</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a6e30f03235da4e0ebf346cd0ec4492cc">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li164574385413">pg_stat_get_partition_tuples_inserted(oid)<p id="EN-US_TOPIC_0000001145710775__p1845820383415"><a name="EN-US_TOPIC_0000001145710775__li164574385413"></a><a name="li164574385413"></a>Description: Number of rows in the corresponding table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p16459113824119">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li8460113874110">pg_stat_get_partition_tuples_updated(oid)<p id="EN-US_TOPIC_0000001145710775__p184631387411"><a name="EN-US_TOPIC_0000001145710775__li8460113874110"></a><a name="li8460113874110"></a>Description: Number of rows that have been updated in the corresponding table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p2046410385413">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li20465338174118">pg_stat_get_partition_tuples_deleted(oid)<p id="EN-US_TOPIC_0000001145710775__p15365126175118"><a name="EN-US_TOPIC_0000001145710775__li20465338174118"></a><a name="li20465338174118"></a>Description: Number of rows deleted from the corresponding table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p4468153874114">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li12469238194119">pg_stat_get_partition_tuples_changed(oid)<p id="EN-US_TOPIC_0000001145710775__p14470133844115"><a name="EN-US_TOPIC_0000001145710775__li12469238194119"></a><a name="li12469238194119"></a>Description: Total number of inserted, updated, and deleted rows after the table partition was last analyzed or autoanalyzed</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p74715389412">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li5476123874120">pg_stat_get_partition_live_tuples(oid)<p id="EN-US_TOPIC_0000001145710775__p1547917385415"><a name="EN-US_TOPIC_0000001145710775__li5476123874120"></a><a name="li5476123874120"></a>Description: Number of live rows in a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p448118382412">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1548213818411">pg_stat_get_partition_dead_tuples(oid)<p id="EN-US_TOPIC_0000001145710775__p5484183864113"><a name="EN-US_TOPIC_0000001145710775__li1548213818411"></a><a name="li1548213818411"></a>Description: Number of dead rows in a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p184851838134113">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li552911213304">pg_stat_get_xact_tuples_inserted(oid)<p id="EN-US_TOPIC_0000001145710775__p419901133110"><a name="EN-US_TOPIC_0000001145710775__li552911213304"></a><a name="li552911213304"></a>Description: Number of tuple inserted into the active subtransactions related to the table.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p192001111143115">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li05589124307">pg_stat_get_xact_tuples_deleted(oid)<p id="EN-US_TOPIC_0000001145710775__p11439111419339"><a name="EN-US_TOPIC_0000001145710775__li05589124307"></a><a name="li05589124307"></a>Description: Number of deleted tuples in the active subtransactions related to a table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p6441414113316">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li6558101293018">pg_stat_get_xact_tuples_hot_updated(oid)<p id="EN-US_TOPIC_0000001145710775__p961982703313"><a name="EN-US_TOPIC_0000001145710775__li6558101293018"></a><a name="li6558101293018"></a>Description: Number of hot updated tuples in the active subtransactions related to a table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p1621152773314">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li107591637143019">pg_stat_get_xact_tuples_updated(oid)<p id="EN-US_TOPIC_0000001145710775__p1592074873314"><a name="EN-US_TOPIC_0000001145710775__li107591637143019"></a><a name="li107591637143019"></a>Description: Number of updated tuples in the active subtransactions related to a table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p1921154818335">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li75598124305">pg_stat_get_xact_partition_tuples_inserted(oid)<p id="EN-US_TOPIC_0000001145710775__p101133111347"><a name="EN-US_TOPIC_0000001145710775__li75598124305"></a><a name="li75598124305"></a>Description: Number of inserted tuples in the active subtransactions related to a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p1311518117346">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li19559111213019">pg_stat_get_xact_partition_tuples_deleted(oid)<p id="EN-US_TOPIC_0000001145710775__p87644453419"><a name="EN-US_TOPIC_0000001145710775__li19559111213019"></a><a name="li19559111213019"></a>Description: Number of deleted tuples in the active subtransactions related to a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p12796449341">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li10560912173013">pg_stat_get_xact_partition_tuples_hot_updated(oid)<p id="EN-US_TOPIC_0000001145710775__p1146452623415"><a name="EN-US_TOPIC_0000001145710775__li10560912173013"></a><a name="li10560912173013"></a>Description: Number of hot updated tuples in the active subtransactions related to a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p2465162653416">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li4559141213309">pg_stat_get_xact_partition_tuples_updated(oid)<p id="EN-US_TOPIC_0000001145710775__p38101233173417"><a name="EN-US_TOPIC_0000001145710775__li4559141213309"></a><a name="li4559141213309"></a>Description: Number of updated tuples in the active subtransactions related to a table partition</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p98121233143411">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l98b16c403c974cfeb4072196fbb99dfe">pg_stat_get_last_vacuum_time(oid)<p id="EN-US_TOPIC_0000001145710775__aafbe04a720a04dafa2c482e124034996"><a name="EN-US_TOPIC_0000001145710775__l98b16c403c974cfeb4072196fbb99dfe"></a><a name="l98b16c403c974cfeb4072196fbb99dfe"></a>Description: Last time when the autovacuum thread is manually started to clear a table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a8050b073495544888c1543dcd5df9ebc">Return type: timestamptz</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l8ad533a1a14246b290eb2a99486bb12b">pg_stat_get_last_autovacuum_time(oid)<p id="EN-US_TOPIC_0000001145710775__aedd679cc8b1b4219874dbd0d41daecb1"><a name="EN-US_TOPIC_0000001145710775__l8ad533a1a14246b290eb2a99486bb12b"></a><a name="l8ad533a1a14246b290eb2a99486bb12b"></a>Description: Time of the last vacuum initiated by the autovacuum daemon on this table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ac834834a4d50412d85c351caf5e76958">Return type: timestamptz</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1579416586298">pg_stat_get_vacuum_count(oid)<p id="EN-US_TOPIC_0000001145710775__p15796125842910"><a name="EN-US_TOPIC_0000001145710775__li1579416586298"></a><a name="li1579416586298"></a>Description: Number of times a table is manually cleared</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p37971958122910">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li94847011308">pg_stat_get_autovacuum_count(oid)<p id="EN-US_TOPIC_0000001145710775__p948460163018"><a name="EN-US_TOPIC_0000001145710775__li94847011308"></a><a name="li94847011308"></a>Description: Number of times the autovacuum daemon is started to clear a table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p164865003012">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lb4efed59914e4057972f5c291323de53">pg_stat_get_last_analyze_time(oid)<p id="EN-US_TOPIC_0000001145710775__acd9cc7841ac84165b691c0cd041f1429"><a name="EN-US_TOPIC_0000001145710775__lb4efed59914e4057972f5c291323de53"></a><a name="lb4efed59914e4057972f5c291323de53"></a>Description: Last time when a table starts to be analyzed manually or by the autovacuum thread</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a552eacfb2a4d4d75b353f8546e3d68cf">Return type: timestamptz</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l3311bdd60b6147cc9ad47bc7aed2c48b">pg_stat_get_last_autoanalyze_time(oid)<p id="EN-US_TOPIC_0000001145710775__a2615f52bc6cd40a8a0d88e72cadc82d7"><a name="EN-US_TOPIC_0000001145710775__l3311bdd60b6147cc9ad47bc7aed2c48b"></a><a name="l3311bdd60b6147cc9ad47bc7aed2c48b"></a>Description: Time of the last analysis initiated by the autovacuum daemon on this table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a96853190c10e4c079bb5156b77bed201">Return type: timestamptz</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li179810433019">pg_stat_get_analyze_count(oid)<p id="EN-US_TOPIC_0000001145710775__p1720519435366"><a name="EN-US_TOPIC_0000001145710775__li179810433019"></a><a name="li179810433019"></a>Description: Number of times a table is manually analyzed</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p151002413013">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li2269593018">pg_stat_get_autoanalyze_count(oid)<p id="EN-US_TOPIC_0000001145710775__p224711354384"><a name="EN-US_TOPIC_0000001145710775__li2269593018"></a><a name="li2269593018"></a>Description: Number of times the autovacuum daemon analyzes a table</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p162813519303">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1563173913313">pg_total_autovac_tuples(bool)<p id="EN-US_TOPIC_0000001145710775__p9452103515328"><a name="EN-US_TOPIC_0000001145710775__li1563173913313"></a><a name="li1563173913313"></a>Description: Gets the tuple records related to <strong id="EN-US_TOPIC_0000001145710775__b1122319188011">total autovac</strong>, such as <strong id="EN-US_TOPIC_0000001145710775__b32231718501">nodename</strong>, <strong id="EN-US_TOPIC_0000001145710775__b1122371818010">nspname</strong>, <strong id="EN-US_TOPIC_0000001145710775__b8223181813012">relname</strong>, and the IUD information of tuples.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p174541635123218">Return type: SETOF record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li58384539394">pg_autovac_status(oid)<p id="EN-US_TOPIC_0000001145710775__p1169405713913"><a name="EN-US_TOPIC_0000001145710775__li58384539394"></a><a name="li58384539394"></a>Description: Returns autovac information, such as <strong id="EN-US_TOPIC_0000001145710775__b13509165416367">nodename</strong>, <strong id="EN-US_TOPIC_0000001145710775__b185091754153611">nspname</strong>, <strong id="EN-US_TOPIC_0000001145710775__b550945413616">relname</strong>, <strong id="EN-US_TOPIC_0000001145710775__b135101854183616">analyze</strong>, <strong id="EN-US_TOPIC_0000001145710775__b1751085423614">vacuum</strong>, thresholds of <strong id="EN-US_TOPIC_0000001145710775__b19511145413620">analyze</strong> and <strong id="EN-US_TOPIC_0000001145710775__b1651114548369">vacuum</strong>, and the number of analyzed or vacuumed tuples.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p124741250184112">Return type: SETOF record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1953653454415">pg_autovac_timeout(oid)<p id="EN-US_TOPIC_0000001145710775__p7975104116448"><a name="EN-US_TOPIC_0000001145710775__li1953653454415"></a><a name="li1953653454415"></a>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_0000001145710775__b2434518162020">NULL</strong> will be returned.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p11977114104420">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li11211571494">pg_autovac_coordinator(oid)<p id="EN-US_TOPIC_0000001145710775__p2810185205011"><a name="EN-US_TOPIC_0000001145710775__li11211571494"></a><a name="li11211571494"></a>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_0000001145710775__b89561725172116">NULL</strong> will be returned.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p68112058501">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1522835314016">pgxc_get_wlm_session_info_bytime(text, timestamp without time zone, timestamp without time zone, int)<p id="EN-US_TOPIC_0000001145710775__p652915963517"><a name="EN-US_TOPIC_0000001145710775__li1522835314016"></a><a name="li1522835314016"></a>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_0000001145710775__i91273501710">time column</em> (<strong id="EN-US_TOPIC_0000001145710775__b971814103818">start_time</strong> or <strong id="EN-US_TOPIC_0000001145710775__b1688312131586">finish_time</strong>), <em id="EN-US_TOPIC_0000001145710775__i68231224283">start time</em>, <em id="EN-US_TOPIC_0000001145710775__i10310112919818">end time</em>, and <em id="EN-US_TOPIC_0000001145710775__i177216441485">maximum number of records returned for each CN</em>. The return result is a subset of records in the GS_WLM_SESSION_HISTORY view.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p57321114414">Return type: SETOF record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li11232548145310">pgxc_get_wlm_current_instance_info(text, int default null)<p id="EN-US_TOPIC_0000001145710775__p52321648165314"><a name="EN-US_TOPIC_0000001145710775__li11232548145310"></a><a name="li11232548145310"></a>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_0000001145710775__b261936165113">ALL</strong>, <strong id="EN-US_TOPIC_0000001145710775__b1145053945111">C</strong>, <strong id="EN-US_TOPIC_0000001145710775__b1363194312518">D</strong>, or <em id="EN-US_TOPIC_0000001145710775__i4506164715112">instance name</em>) and the maximum number of records returned by each node. The returned value is <strong id="EN-US_TOPIC_0000001145710775__b212216411529">GS_WLM_INSTANCE_HISTORY</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p723264810535">Return type: SETOF record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li77291532125316">pgxc_get_wlm_history_instance_info(text, TIMESTAMP, TIMESTAMP, int default null)<p id="EN-US_TOPIC_0000001145710775__p672963220530"><a name="EN-US_TOPIC_0000001145710775__li77291532125316"></a><a name="li77291532125316"></a>Description: Queries the historical resource usage of each cluster node on the CN node and reads data from the <strong id="EN-US_TOPIC_0000001145710775__b453563910520">GS_WLM_INSTANCE_HISTORY</strong> system catalog. The input parameters are as follows: node name (<strong id="EN-US_TOPIC_0000001145710775__b461194912524">ALL</strong>, <strong id="EN-US_TOPIC_0000001145710775__b17711125214522">C</strong>, <strong id="EN-US_TOPIC_0000001145710775__b19139135618528">D</strong>, or <em id="EN-US_TOPIC_0000001145710775__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_0000001145710775__b1516151720521">GS_WLM_INSTANCE_HISTORY</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p18729632105316">Return type: SETOF record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1248175514307">pg_stat_get_last_data_changed_time(oid)<p id="EN-US_TOPIC_0000001145710775__p748235514304"><a name="EN-US_TOPIC_0000001145710775__li1248175514307"></a><a name="li1248175514307"></a>Description: Returns the time when <strong id="EN-US_TOPIC_0000001145710775__b6222133212176">INSERT</strong>, <strong id="EN-US_TOPIC_0000001145710775__b62231832131715">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001145710775__b32231932191720">DELETE</strong>, or <strong id="EN-US_TOPIC_0000001145710775__b1122410323174">EXCHANGE</strong>/<strong id="EN-US_TOPIC_0000001145710775__b17224832101717">TRUNCATE</strong>/<strong id="EN-US_TOPIC_0000001145710775__b1122583214171">DROP</strong> <strong id="EN-US_TOPIC_0000001145710775__b4226932161713">PARTITION</strong> was performed last time on a table. The data in the <strong id="EN-US_TOPIC_0000001145710775__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_0000001145710775__p20482255113010">Return type: timestamptz</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li168865753015">pg_stat_set_last_data_changed_time(oid)<p id="EN-US_TOPIC_0000001145710775__p1688105717306"><a name="EN-US_TOPIC_0000001145710775__li168865753015"></a><a name="li168865753015"></a>Description: Manually changes the time when <strong id="EN-US_TOPIC_0000001145710775__b4230123614177">INSERT</strong>, <strong id="EN-US_TOPIC_0000001145710775__b14231173631718">UPDATE</strong>, <strong id="EN-US_TOPIC_0000001145710775__b1723119363179">DELETE</strong>, or <strong id="EN-US_TOPIC_0000001145710775__b1023215363171">EXCHANGE</strong>/<strong id="EN-US_TOPIC_0000001145710775__b11232143610172">TRUNCATE</strong>/<strong id="EN-US_TOPIC_0000001145710775__b1233203617173">DROP</strong> <strong id="EN-US_TOPIC_0000001145710775__b92348369176">PARTITION</strong> was performed last time.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p116885579301">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li8207194053518">pv_session_time()<p id="EN-US_TOPIC_0000001145710775__p4207134013352"><a name="EN-US_TOPIC_0000001145710775__li8207194053518"></a><a name="li8207194053518"></a>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_0000001145710775__p18207134018358">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1023018427357">pv_instance_time()<p id="EN-US_TOPIC_0000001145710775__p122301342143515"><a name="EN-US_TOPIC_0000001145710775__li1023018427357"></a><a name="li1023018427357"></a>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_0000001145710775__p17230742113515">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l74caf7fa84cf4b98a67d0451be99ca86">pg_stat_get_activity(integer)<p id="EN-US_TOPIC_0000001145710775__a2a0d122212f24a9ab2dbeee663bc64bb"><a name="EN-US_TOPIC_0000001145710775__l74caf7fa84cf4b98a67d0451be99ca86"></a><a name="l74caf7fa84cf4b98a67d0451be99ca86"></a>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_0000001145710775__b842352706173439">NULL</strong> is specified. The return result is a subset of records (excluding the <strong id="EN-US_TOPIC_0000001145710775__b5448642152612">connection_info</strong> column) in the PG_STAT_ACTIVITY view.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a2b5ff28b5fb645eda5f252bb4ac58906">Return type: SETOF record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li12321163183612">pg_stat_get_activity_with_conninfo(integer)<p id="EN-US_TOPIC_0000001145710775__p2032110319368"><a name="EN-US_TOPIC_0000001145710775__li12321163183612"></a><a name="li12321163183612"></a>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_0000001145710775__b571312382172">NULL</strong> is specified. The return result is a subset of records in the PG_STAT_ACTIVITY view.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p113211436364">Return type: SETOF record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1664914261975">pg_user_iostat(text)<p id="EN-US_TOPIC_0000001145710775__p1260917361132"><a name="EN-US_TOPIC_0000001145710775__li1664914261975"></a><a name="li1664914261975"></a>Description: Displays the I/O load management information about the job currently executed by the user.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p23405108106">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p192923617122">The following table describes return fields.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145710775__table842513640" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001145710775__row11426631846"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.81.4.1.4.1.1"><p id="EN-US_TOPIC_0000001145710775__a75fe01a5469c48c09615bf1dbb3997dd">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.81.4.1.4.1.2"><p id="EN-US_TOPIC_0000001145710775__p54991455747">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="65%" id="mcps1.3.2.81.4.1.4.1.3"><p id="EN-US_TOPIC_0000001145710775__p1468935815411">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145710775__row74262318415"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.81.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p54261938418">userid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.81.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p1742611310413">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.2.81.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p114261231143">User ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row7426039410"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.81.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p10426203540">min_curr_iops</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.81.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p242618317411">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.2.81.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p9426131249">Minimum I/O of the current user across DNs. The IOPS is counted by ones for column storage and by thousands for row storage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row2426123642"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.81.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p11426173847">max_curr_iops</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.81.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p20426831246">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.2.81.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p1742603448">Maximum I/O of the current user across DNs. The IOPS is counted by ones for column storage and by thousands for row storage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row542653546"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.81.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p19426637419">min_peak_iops</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.81.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p44261318416">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.2.81.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p154268319410">Minimum peak I/O of the current user across DNs. The IOPS is counted by ones for column storage and by thousands for row storage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row3426933419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.81.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p1942620314416">max_peak_iops</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.81.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p34263312418">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.2.81.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p242615310414">Maximum peak I/O of the current user across DNs. The IOPS is counted by ones for column storage and by thousands for row storage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row4426834414"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.81.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p14427731047">io_limits</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.81.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p104271831643">int4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.2.81.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p3427331643"><strong id="EN-US_TOPIC_0000001145710775__b84235270614289">io_limits</strong> set for the resource pool specified by the user. The IOPS is counted by ones for column storage and by thousands for row storage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row942753841"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.81.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p84272316419">io_priority</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.81.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p74271935417">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.2.81.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p1542716312414"><strong id="EN-US_TOPIC_0000001145710775__b842352706142815">io_priority</strong> set for the user. The IOPS is counted by ones for column storage and by thousands for row storage.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lba0551584c8d43dc926c6680733d0126">pg_stat_get_function_calls(oid)<p id="EN-US_TOPIC_0000001145710775__a4538a08290e04e7a8d65274fa8588970"><a name="EN-US_TOPIC_0000001145710775__lba0551584c8d43dc926c6680733d0126"></a><a name="lba0551584c8d43dc926c6680733d0126"></a>Description: Number of times the function has been called</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__aeb9fa9c1d4bb43e3a05e4a391217f435">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lc46993eaffaa42258e71b07b5da1068e">pg_stat_get_function_total_time(oid)<p id="EN-US_TOPIC_0000001145710775__aed3f6c16c43b41218ddcc3d944cfb54b"><a name="EN-US_TOPIC_0000001145710775__lc46993eaffaa42258e71b07b5da1068e"></a><a name="lc46993eaffaa42258e71b07b5da1068e"></a>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_0000001145710775__afcf4e5c7b2ec4be8b10cf9cfd58ac030">Return type: double precision</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__le8b677de952749df865f3ed385f19b4c">pg_stat_get_function_self_time(oid)<p id="EN-US_TOPIC_0000001145710775__a1838cf6e64ea4af385dcc179e8136839"><a name="EN-US_TOPIC_0000001145710775__le8b677de952749df865f3ed385f19b4c"></a><a name="le8b677de952749df865f3ed385f19b4c"></a>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_0000001145710775__aa833d1a612ff42f48e15d0b844bcfafe">Return type: double precision</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__le149f11081464e97b5657a9a96245d50">pg_stat_get_backend_idset()<p id="EN-US_TOPIC_0000001145710775__ad8fe6577e62a4ebbbfe80695eada70b7"><a name="EN-US_TOPIC_0000001145710775__le149f11081464e97b5657a9a96245d50"></a><a name="le149f11081464e97b5657a9a96245d50"></a>Description: Set of currently active server process numbers (from 1 to the number of active server processes)</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__abd3ef5b855d7448faf03e91c7a3cc065">Return type: SETOF integer</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lcda033848e9645b189715d7c5f27c3b5">pg_stat_get_backend_pid(integer)<p id="EN-US_TOPIC_0000001145710775__afd6060ca758d4b5cbc9911acd453f619"><a name="EN-US_TOPIC_0000001145710775__lcda033848e9645b189715d7c5f27c3b5"></a><a name="lcda033848e9645b189715d7c5f27c3b5"></a>Description: Thread ID of the given server thread</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a369ff2c0ed4f4f859cdacdeaab0d4629">Return type: bigint</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001145710775__screen12339154131"><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="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="w"></span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span><span class="w"></span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l075a8994aee441cb888667394f820048">pg_stat_get_backend_dbid(integer)<p id="EN-US_TOPIC_0000001145710775__a59a58f62a95349c6ba89400e744aa5ef"><a name="EN-US_TOPIC_0000001145710775__l075a8994aee441cb888667394f820048"></a><a name="l075a8994aee441cb888667394f820048"></a>Description: ID of the database connected to the given server process</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a7fcf533a1c6746dfaf92885b5ff88094">Return type: OID</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__ld0a57846831740299a05553664fcf11a">pg_stat_get_backend_userid(integer)<p id="EN-US_TOPIC_0000001145710775__a4f4a307016924b17afa0310fa8572f8b"><a name="EN-US_TOPIC_0000001145710775__ld0a57846831740299a05553664fcf11a"></a><a name="ld0a57846831740299a05553664fcf11a"></a>Description: User ID of the given server process</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a6e9c538ee6bf4c16b13d592c5c85a583">Return type: OID</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__la04267e089d14124834d25b5fd390d08">pg_stat_get_backend_activity(integer)<p id="EN-US_TOPIC_0000001145710775__adb5930a986c043379fc7d4628381f726"><a name="EN-US_TOPIC_0000001145710775__la04267e089d14124834d25b5fd390d08"></a><a name="la04267e089d14124834d25b5fd390d08"></a>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_0000001145710775__b842352706174350">track_activities</strong> is on</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__aef760dccb782481fa7bf86ed07b37ccd">Return type: text</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lae7a543bb0c04202815cbdd5eb10962d">pg_stat_get_backend_waiting(integer)<p id="EN-US_TOPIC_0000001145710775__a828af5a6dccd43d89cfe25d53d64862c"><a name="EN-US_TOPIC_0000001145710775__lae7a543bb0c04202815cbdd5eb10962d"></a><a name="lae7a543bb0c04202815cbdd5eb10962d"></a>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_0000001145710775__b842352706174338">track_activities</strong> is on</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a78e768c6c2df4b19bb40993411fb3c21">Return type: <span id="EN-US_TOPIC_0000001145710775__text1037425912225">boolean</span></p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l2014b369c74542729024943b9622770a">pg_stat_get_backend_activity_start(integer)<p id="EN-US_TOPIC_0000001145710775__a0f9300e1d5dc46b3a70bc9a36c91b0fa"><a name="EN-US_TOPIC_0000001145710775__l2014b369c74542729024943b9622770a"></a><a name="l2014b369c74542729024943b9622770a"></a>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_0000001145710775__b842352706174327">track_activities</strong> is on</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a994d5428974c4e1daea6b317439936f2">Return type: timestamp with time zone</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lc7d2b8fd88e94d6c8e69d4556a4527cf">pg_stat_get_backend_xact_start(integer)<p id="EN-US_TOPIC_0000001145710775__a8e7d6d4310154645964ed4ae45743b99"><a name="EN-US_TOPIC_0000001145710775__lc7d2b8fd88e94d6c8e69d4556a4527cf"></a><a name="lc7d2b8fd88e94d6c8e69d4556a4527cf"></a>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_0000001145710775__b842352706174318">track_activities</strong> is on</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a246067667d9d425991a201e07de9eaa6">Return type: timestamp with time zone</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l7db31c67de4f4cdab140e2a4a4c417ec">pg_stat_get_backend_start(integer)<p id="EN-US_TOPIC_0000001145710775__a1fa211d4d07545af814aa8461c500712"><a name="EN-US_TOPIC_0000001145710775__l7db31c67de4f4cdab140e2a4a4c417ec"></a><a name="l7db31c67de4f4cdab140e2a4a4c417ec"></a>Description: The time at which the given server process was started, or <strong id="EN-US_TOPIC_0000001145710775__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_0000001145710775__ac19b7b0eb6ec437caff8d9da4377fe78">Return type: timestamp with time zone</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lb9286e065d7a423896a68567a61f5ca9">pg_stat_get_backend_client_addr(integer)<p id="EN-US_TOPIC_0000001145710775__a78dcba33759b41aba2b143fc93ecbd13"><a name="EN-US_TOPIC_0000001145710775__lb9286e065d7a423896a68567a61f5ca9"></a><a name="lb9286e065d7a423896a68567a61f5ca9"></a>Description: IP address of the client connected to the given server process.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__aa0c6928318c14c6184704f9bf9c5d402">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_0000001145710775__b5774939238">NULL</strong> will be returned.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a8a95466680e44176ba0bd47bc2e55c5e">Return type: inet</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p20474148840">Note: An IP address used as an input parameter of this function cannot contain periods (.). For example, <strong id="EN-US_TOPIC_0000001145710775__b16517251303">192.168.100.128</strong> should be written as <strong id="EN-US_TOPIC_0000001145710775__b265162519019">192168100128</strong>.</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l6d3ab9251c074a43b74383e843c2f49d">pg_stat_get_backend_client_port(integer)<p id="EN-US_TOPIC_0000001145710775__ae94e5247c72a447d96b12a88c6ca29d9"><a name="EN-US_TOPIC_0000001145710775__l6d3ab9251c074a43b74383e843c2f49d"></a><a name="l6d3ab9251c074a43b74383e843c2f49d"></a>Description: TCP port number of the client connected to the given server process</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a2cb261dad9744e7799f1e3fa093cf421">If the connection is over a Unix domain socket, <strong id="EN-US_TOPIC_0000001145710775__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_0000001145710775__b18419144218220">NULL</strong> will be returned.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a258394034ba64011b584c9713adaed22">Return type: integer</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l04ee5a0e00ca4f63adb5b2328c194330">pg_stat_get_bgwriter_timed_checkpoints()<p id="EN-US_TOPIC_0000001145710775__a51f99f7376a04e72862e2e92ba713a53"><a name="EN-US_TOPIC_0000001145710775__l04ee5a0e00ca4f63adb5b2328c194330"></a><a name="l04ee5a0e00ca4f63adb5b2328c194330"></a>Description: The number of times the background writer has started timed checkpoints (because the <strong id="EN-US_TOPIC_0000001145710775__b842352706174920">checkpoint_timeout</strong> time has expired)</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a2cf1a277828d43ebaf567c79b02273b3">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lba94da65cc7c4211b67765558889a3af">pg_stat_get_bgwriter_requested_checkpoints()<p id="EN-US_TOPIC_0000001145710775__a38d77b3e1f5f4d92a4a0fcdc2448cb5c"><a name="EN-US_TOPIC_0000001145710775__lba94da65cc7c4211b67765558889a3af"></a><a name="lba94da65cc7c4211b67765558889a3af"></a>Description: The number of times the background writer has started checkpoints based on requests from the backend because <strong id="EN-US_TOPIC_0000001145710775__b683918378589">checkpoint_segments</strong> has been exceeded or the <strong id="EN-US_TOPIC_0000001145710775__b842352706174958">CHECKPOINT</strong> command has been executed</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a575dda8281cf41e0aa7d4db396765809">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l3e32d0458e7d40f497337c65431c5aba">pg_stat_get_bgwriter_buf_written_checkpoints()<p id="EN-US_TOPIC_0000001145710775__ae3790e8ed4c0444085a7327ba6d5fde4"><a name="EN-US_TOPIC_0000001145710775__l3e32d0458e7d40f497337c65431c5aba"></a><a name="l3e32d0458e7d40f497337c65431c5aba"></a>Description: The number of buffers written by the background writer during checkpoints</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a625a5110c9804402b526209b24bb7c72">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lab972c00ec9a4ea6b310b7da6249fdf9">pg_stat_get_bgwriter_buf_written_clean()<p id="EN-US_TOPIC_0000001145710775__a79e72b62aefb461a84814967b657d71b"><a name="EN-US_TOPIC_0000001145710775__lab972c00ec9a4ea6b310b7da6249fdf9"></a><a name="lab972c00ec9a4ea6b310b7da6249fdf9"></a>Description: The number of buffers written by the background writer for routine cleaning of dirty pages</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a8bc858374c8648f4b5d78bf3212c9056">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l79d7428145284aa8ada6b8f6b7dc17ca">pg_stat_get_bgwriter_maxwritten_clean()<p id="EN-US_TOPIC_0000001145710775__a59fe342fd36340af8973d0ab7f849132"><a name="EN-US_TOPIC_0000001145710775__l79d7428145284aa8ada6b8f6b7dc17ca"></a><a name="l79d7428145284aa8ada6b8f6b7dc17ca"></a>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_0000001145710775__b842352706175128">bgwriter_lru_maxpages</strong> parameter</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ad913a1e2978446b89f51dce3e62b4139">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l74ffa78b3bc84fc19a88678a24ac2648">pg_stat_get_buf_written_backend()<p id="EN-US_TOPIC_0000001145710775__a2c1ba9b979794944a09463ee6baf2ae8"><a name="EN-US_TOPIC_0000001145710775__l74ffa78b3bc84fc19a88678a24ac2648"></a><a name="l74ffa78b3bc84fc19a88678a24ac2648"></a>Description: The number of buffers written by the backend because they needed to allocate a new buffer</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a80e54c598fcd4df3a4a6161b1c8674bc">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lb8e59ad738e643ed80181943fe7ca10c">pg_stat_get_buf_alloc()<p id="EN-US_TOPIC_0000001145710775__afb734645646a448f88956c1acba835af"><a name="EN-US_TOPIC_0000001145710775__lb8e59ad738e643ed80181943fe7ca10c"></a><a name="lb8e59ad738e643ed80181943fe7ca10c"></a>Description: The total number of buffer allocations</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__aa26a839d0a03473aaac089a6cf81b2e0">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l949382164cc84c3a9b81dad276615dd0">pg_stat_clear_snapshot()<p id="EN-US_TOPIC_0000001145710775__a89b578b138ce4f8da96d438fd0c3e9ad"><a name="EN-US_TOPIC_0000001145710775__l949382164cc84c3a9b81dad276615dd0"></a><a name="l949382164cc84c3a9b81dad276615dd0"></a>Description: Discards the current statistics snapshot.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ac820028d307c49498097d20bebcbf146">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l1845758c82a84baa9a73032c29f8d222">pg_stat_reset()<p id="EN-US_TOPIC_0000001145710775__a8b5a832818904b97aa8e52cafbc3e63e"><a name="EN-US_TOPIC_0000001145710775__l1845758c82a84baa9a73032c29f8d222"></a><a name="l1845758c82a84baa9a73032c29f8d222"></a>Description: Resets all statistics counters for the current database to zero (requires system administrator permissions).</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__aeac7bacc82ce4b59b0acde42521ca5d9">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li1032622843816">pg_stat_reset_shared(text)<p id="EN-US_TOPIC_0000001145710775__p7145135933820"><a name="EN-US_TOPIC_0000001145710775__li1032622843816"></a><a name="li1032622843816"></a>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_0000001145710775__p1014965912387">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__le572b5ef3a514e0b97f1050eb056019d">pg_stat_reset_single_table_counters(oid)<p id="EN-US_TOPIC_0000001145710775__a1a40c0b977c446c1b205de76c4a52587"><a name="EN-US_TOPIC_0000001145710775__le572b5ef3a514e0b97f1050eb056019d"></a><a name="le572b5ef3a514e0b97f1050eb056019d"></a>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_0000001145710775__afd61be82752d40508ec1116bba44763f">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l3257d3122b5046bdac5ea722705570b2">pg_stat_reset_single_function_counters(oid)<p id="EN-US_TOPIC_0000001145710775__a508eca91b9fb4799be5b73df29a675b6"><a name="EN-US_TOPIC_0000001145710775__l3257d3122b5046bdac5ea722705570b2"></a><a name="l3257d3122b5046bdac5ea722705570b2"></a>Description: Resets statistics for a single function in the current database to zero (requires system administrator permissions).</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a46ea3a75796848b1a3327d613c763392">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l3cfd6409097e4790a7ecfecb9872ef75">pg_stat_session_cu(int, int, int)<p id="EN-US_TOPIC_0000001145710775__aa49434f905f64eaeb2ae9106e0f4ac31"><a name="EN-US_TOPIC_0000001145710775__l3cfd6409097e4790a7ecfecb9872ef75"></a><a name="l3cfd6409097e4790a7ecfecb9872ef75"></a>Description: Obtains the compression unit (CU) hit statistics of sessions running on the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__adb3b3f9ea4284c6a8cab08572ec0f19e">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l84dc3defe8184b69b704a217e384930d">gs_get_stat_session_cu(text, int, int, int)<p id="EN-US_TOPIC_0000001145710775__a40b78364d48546b0933b01537bc8e97a"><a name="EN-US_TOPIC_0000001145710775__l84dc3defe8184b69b704a217e384930d"></a><a name="l84dc3defe8184b69b704a217e384930d"></a>Description: Obtains the CU hit statistics of all sessions running in a cluster.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__aefd308142074475296e2e7aebdfcc974">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__lca8ca8d0c44b490296384e03b3882c19">gs_get_stat_db_cu(text, text, int, int, int)<p id="EN-US_TOPIC_0000001145710775__a7f60858431de457a8e436a516c8d6950"><a name="EN-US_TOPIC_0000001145710775__lca8ca8d0c44b490296384e03b3882c19"></a><a name="lca8ca8d0c44b490296384e03b3882c19"></a>Description: Obtains the CU hit statistics of a database in a cluster.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__afddd8d9c563c441e96b5691e8dded2d9">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l0ae8a0a469fc4307a89cbee8a631aaf9">pg_stat_get_cu_mem_hit(oid)<p id="EN-US_TOPIC_0000001145710775__a2f9712c71b524e12a8296642e4a2c9fb"><a name="EN-US_TOPIC_0000001145710775__l0ae8a0a469fc4307a89cbee8a631aaf9"></a><a name="l0ae8a0a469fc4307a89cbee8a631aaf9"></a>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_0000001145710775__ae511cdf247d648c4812555c468f59f29">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l8e7200a3bcfa463b99800cad3dcd9ddb">pg_stat_get_cu_hdd_sync(oid)<p id="EN-US_TOPIC_0000001145710775__af101c23f344441ef9d8f391941f27087"><a name="EN-US_TOPIC_0000001145710775__l8e7200a3bcfa463b99800cad3dcd9ddb"></a><a name="l8e7200a3bcfa463b99800cad3dcd9ddb"></a>Description: Obtains the times CU is synchronously read from a disk by a column storage table in the current database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a18d793d754224d66abec0e6e709fb01a">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l643175dbd388498489b890a437f796f4">pg_stat_get_cu_hdd_asyn(oid)<p id="EN-US_TOPIC_0000001145710775__a40a57e172cfa42679b8e2b040dd3e84d"><a name="EN-US_TOPIC_0000001145710775__l643175dbd388498489b890a437f796f4"></a><a name="l643175dbd388498489b890a437f796f4"></a>Description: Obtains the times CU is asynchronously read from a disk by a column storage table in the current database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a414c99dd818749fea972cfcaba9c8398">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l577bb9f9a8ea4c2680c9a616504b3453">pg_stat_get_db_cu_mem_hit(oid)<p id="EN-US_TOPIC_0000001145710775__a74edc1848ea44988b903998fc77dd22e"><a name="EN-US_TOPIC_0000001145710775__l577bb9f9a8ea4c2680c9a616504b3453"></a><a name="l577bb9f9a8ea4c2680c9a616504b3453"></a>Description: Obtains the CU memory hit in a database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a677ac704c2c146d1b9e80eb48eeabac2">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__l4b735729573f4ffca3f290302e4d7d6c">pg_stat_get_db_cu_hdd_sync(oid)<p id="EN-US_TOPIC_0000001145710775__aec63aa483de74c788a9720e4c2521a73"><a name="EN-US_TOPIC_0000001145710775__l4b735729573f4ffca3f290302e4d7d6c"></a><a name="l4b735729573f4ffca3f290302e4d7d6c"></a>Description: Obtains the times CU is synchronously read from a disk by a database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__a87a60466a14b4469b43cd3b316f29d48">Return type: bigint</p>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001145710775__u0fc933145a924a24acb228988ea6d9bd"><li id="EN-US_TOPIC_0000001145710775__l23b0d1cf29dc4087bf2b1a6fa02798b6">pg_stat_get_db_cu_hdd_asyn(oid)<p id="EN-US_TOPIC_0000001145710775__ac81d5d1999be40c1a420f716374ebce6"><a name="EN-US_TOPIC_0000001145710775__l23b0d1cf29dc4087bf2b1a6fa02798b6"></a><a name="l23b0d1cf29dc4087bf2b1a6fa02798b6"></a>Description: Obtains the times CU is asynchronously read from a disk by a database of the current node.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__ac372ca786e0343e085555732a493e04e">Return type: bigint</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li9597205817528">pgxc_fenced_udf_process()<p id="EN-US_TOPIC_0000001145710775__p14708959145213"><a name="EN-US_TOPIC_0000001145710775__li9597205817528"></a><a name="li9597205817528"></a>Description: Shows the number of UDF Master and Work processes.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p17335162918566">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li742765914560">pgxc_terminate_all_fenced_udf_process()<p id="EN-US_TOPIC_0000001145710775__p39655612583"><a name="EN-US_TOPIC_0000001145710775__li742765914560"></a><a name="li742765914560"></a>Description: Kills all UDF Work processes.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p2734122145912">Return type: bool</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li152561356895">GS_ALL_NODEGROUP_CONTROL_GROUP_INFO(text)<div class="p" id="EN-US_TOPIC_0000001145710775__p26291757192"><a name="EN-US_TOPIC_0000001145710775__li152561356895"></a><a name="li152561356895"></a>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_0000001145710775__b97065313191">installation</strong> logical cluster, run the following command:<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001145710775__screen18466626121318"><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><span class="w"></span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001145710775__p15333419133511">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p1656193220129">The following table describes return fields.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145710775__t8f0334486f934453827d563b90c86711" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001145710775__r2a0276b542d54fd0808927c2c54b0fc6"><th align="left" class="cellrowborder" valign="top" width="23%" id="mcps1.3.3.4.4.1.4.1.1"><p id="EN-US_TOPIC_0000001145710775__a5579cdd06a5645b3862144b2131a8649">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.000000000000002%" id="mcps1.3.3.4.4.1.4.1.2"><p id="EN-US_TOPIC_0000001145710775__a1f7bf547d07e4656a132c0e34ba635ca">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63%" id="mcps1.3.3.4.4.1.4.1.3"><p id="EN-US_TOPIC_0000001145710775__a8447f6b31ba54199a8224fea8463c23d">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145710775__rf8b75b68e6a24e29931035876b3c3dfb"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__a8f18d3f0e5cd44d096020df47ca28e00">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__aecd744296d7d4b0397b2fe1fd923b6bf">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__a8579d68414bb40968ecb2f54fd50bfa3">Name of a Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__r685dd7e8104e4020b260711d0d1cf9a9"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__ad7f3b45edf4748ef8bf45be74968b4ac">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__a0b778f8c6817439484fd5f0cb1d91e8b">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__abd4a7662d8784ec1890fd6e25a2ce17d">Type of the Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__r45542ef0924c49f2a21c540acd3c90e3"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__a09bb26374b104b3fb29bbe2a80ef226a">gid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__abe1aa36777e444c48c10c68dea6d28bd">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__a08d938eccee84d42b9018a66f6b6784c">Cgroup ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__ra3bccb8528cd408aa54f8e30557c0359"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__ac1f1c391b720448fb6cff2861dc151b6">classgid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p84741447191914">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__a83dfda58a9ac418fab57f167cd4a8244">ID of the <strong id="EN-US_TOPIC_0000001145710775__b12732418114">Class</strong> Cgroup where a <strong id="EN-US_TOPIC_0000001145710775__b45219451119">Workload</strong> Cgroup belongs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__rd7538143f1a648d2ae003ee563237226"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__adad82d644319412cb3a8d9cb60daa836">class</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__a0a0c18f59f1a47bdb17413bbe1716f3a">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__a2fe293248c694ffd9fe3f04bdf3a3f6d"><strong id="EN-US_TOPIC_0000001145710775__b1245218316219">Class</strong> Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__ra831355d65f64e7b92f51f84021f4947"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__a71cd5950d6ef4ea888015a515726ccf1">workload</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__a9193af9c57084a81b157fec2c2935f90">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__a8900dd32319f4d53937621db1727f5cf"><strong id="EN-US_TOPIC_0000001145710775__b67031761125">Workload</strong> Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__rdb4c5c3a41fb4325a8c11787c3af82b1"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__ab44539456dc4418bbfdc32a89a1f2851">shares</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__a17a7c300ce604cd380d8340e5bfa63c3">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__aad54cacd015d4619bf9acb9cb4736cd3">CPU quota allocated to a Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__r47bd7dff24334c239af7266eeeb52c2b"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__a97cfc7c8c5c8412aa7b03489d5df0b8a">limits</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__ac0400ce695b945b89702ff50805ac554">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__a04d603fa66434a178026e29847b76f40">Limit of CPUs allocated to a Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row5504610171814"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p105051710131812">wdlevel</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p20505010181817">bigint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p25051510141815"><strong id="EN-US_TOPIC_0000001145710775__b114084591954">Workload</strong> Cgroup level</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row15968121961816"><td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.3.4.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p149683193188">cpucores</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.000000000000002%" headers="mcps1.3.3.4.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p14968519121811">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63%" headers="mcps1.3.3.4.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p19681196183">Usage of CPU cores in a Cgroup</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li946583010576">gs_get_nodegroup_tablecount(name)<p id="EN-US_TOPIC_0000001145710775__p443811306589"><a name="EN-US_TOPIC_0000001145710775__li946583010576"></a><a name="li946583010576"></a>Description: Total number of user tables in all the databases in a logical cluster</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p118171745910">Return type: integer</p>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001145710775__ul45209221705"><li id="EN-US_TOPIC_0000001145710775__li7520102219020">pgxc_max_datanode_size(name)<p id="EN-US_TOPIC_0000001145710775__p103251115917"><a name="EN-US_TOPIC_0000001145710775__li7520102219020"></a><a name="li7520102219020"></a>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_0000001145710775__p192214812213">Return type: bigint</p>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001145710775__ul12577910658"><li id="EN-US_TOPIC_0000001145710775__li125791210154">gs_check_logic_cluster_consistency()<p id="EN-US_TOPIC_0000001145710775__p689632217515"><a name="EN-US_TOPIC_0000001145710775__li125791210154"></a><a name="li125791210154"></a>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_0000001145710775__p1871321515610">Return type: record</p>
|
|
</li></ul>
|
|
<ul id="EN-US_TOPIC_0000001145710775__ul103078491882"><li id="EN-US_TOPIC_0000001145710775__li630810491817">gs_check_tables_distribution()<p id="EN-US_TOPIC_0000001145710775__p137731131646"><a name="EN-US_TOPIC_0000001145710775__li630810491817"></a><a name="li630810491817"></a>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_0000001145710775__p4627722151211">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li12460842103319">pg_stat_bad_block(text, int, int, int, int, int, timestamp with time zone, timestamp with time zone)<p id="EN-US_TOPIC_0000001145710775__p1046417428338"><a name="EN-US_TOPIC_0000001145710775__li12460842103319"></a><a name="li12460842103319"></a>Description: Obtains damage information about pages or CUs after the current node is started.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p19466742193314">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li517761183815">pgxc_stat_bad_block(text, int, int, int, int, int, timestamp with time zone, timestamp with time zone)<p id="EN-US_TOPIC_0000001145710775__p21804115381"><a name="EN-US_TOPIC_0000001145710775__li517761183815"></a><a name="li517761183815"></a>Description: Obtains damage information about pages or CUs after all the nodes in the cluster are started.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p6181114382">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li3722849173912">pg_stat_bad_block_clear()<p id="EN-US_TOPIC_0000001145710775__p772674943915"><a name="EN-US_TOPIC_0000001145710775__li3722849173912"></a><a name="li3722849173912"></a>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_0000001145710775__p7727124913913">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li974214518396">pgxc_stat_bad_block_clear()<p id="EN-US_TOPIC_0000001145710775__p1745165112395"><a name="EN-US_TOPIC_0000001145710775__li974214518396"></a><a name="li974214518396"></a>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_0000001145710775__p9747155111394">Return type: void</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li416951162610">gs_respool_exception_info(pool text)<p id="EN-US_TOPIC_0000001145710775__p1295285612257"><a name="EN-US_TOPIC_0000001145710775__li416951162610"></a><a name="li416951162610"></a>Description: Queries for the query rule of a specified resource pool.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p11933175912516">Return type: record</p>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li111931884019">gs_control_group_info(pool text)<p id="EN-US_TOPIC_0000001145710775__p439372311409"><a name="EN-US_TOPIC_0000001145710775__li111931884019"></a><a name="li111931884019"></a>Description: Queries for information about Cgroups associated with a resource pool.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p59151020154013">Return type: record</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p1329417418497">The following information is displayed:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145710775__table1560939125613" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001145710775__row260919925618"><th align="left" class="cellrowborder" valign="top" width="26.37736226377362%" id="mcps1.3.6.7.4.1.4.1.1"><p id="EN-US_TOPIC_0000001145710775__p17610179175619">Attribute</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.44715528447155%" id="mcps1.3.6.7.4.1.4.1.2"><p id="EN-US_TOPIC_0000001145710775__p361013935612">Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.175482451754824%" id="mcps1.3.6.7.4.1.4.1.3"><p id="EN-US_TOPIC_0000001145710775__p461011975616">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001145710775__row116109912569"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p461079145611">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p161020985611">class_a:workload_a1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p196108914566">Class name and workload name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row06106985619"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p7610149125612">class</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p2610139185611">class_a</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p4610196562">Class Cgroup name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row1399384455713"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p209946441573">workload</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p159941447578">workload_a1</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p20994544125713">Workload Cgroup name</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row8632178185817"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p17633882582">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p863315865812">DEFWD</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p46338815818">Cgroup type (Top, CLASS, BAKWD, DEFWD, and TSWD)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row19207812135811"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p2208812105815">gid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p11208161265812">87</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p1120816121589">Cgroup ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row01967412582"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p15196164105812">shares</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p619610455819">30</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p01966445815">Percentage of CPU resources to those on the parent node</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row1931985165714"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p183203516578">limits</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p7320125111571">0</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p43209514578">Percentage of CPU cores to those on the parent node</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row148871119165810"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p6887201917580">rate</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p188871519125814">0</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p1988821914586">Allocation ratio in Timeshare</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001145710775__row1970717163583"><td class="cellrowborder" valign="top" width="26.37736226377362%" headers="mcps1.3.6.7.4.1.4.1.1 "><p id="EN-US_TOPIC_0000001145710775__p47079162588">cpucores</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.44715528447155%" headers="mcps1.3.6.7.4.1.4.1.2 "><p id="EN-US_TOPIC_0000001145710775__p37074160581">0-3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.175482451754824%" headers="mcps1.3.6.7.4.1.4.1.3 "><p id="EN-US_TOPIC_0000001145710775__p17078161586">Number of CPU cores</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0000001145710775__li818958192615">gs_wlm_user_resource_info(name text)<p id="EN-US_TOPIC_0000001145710775__p113519418266"><a name="EN-US_TOPIC_0000001145710775__li818958192615"></a><a name="li818958192615"></a>Description: Queries for a user's resource quota and resource usage.</p>
|
|
<p id="EN-US_TOPIC_0000001145710775__p11213193817258">Return type: record</p>
|
|
</li></ul>
|
|
</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>
|
|
|