doc-exports/docs/dws/dev/dws_04_0769.html
Lu, Huayi a24ca60074 DWS DEVELOPER 811 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-01-19 13:37:49 +00:00

171 lines
14 KiB
HTML

<a name="EN-US_TOPIC_0000001145814359"></a><a name="EN-US_TOPIC_0000001145814359"></a>
<h1 class="topictitle1">PG_STAT_SYS_TABLES</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001145814359__en-us_topic_0059777944_p107995517412"><strong id="EN-US_TOPIC_0000001145814359__b842352706115010">PG_STAT_SYS_TABLES</strong> displays the statistics about the system catalogs of all the namespaces in <strong id="EN-US_TOPIC_0000001145814359__b842352706115245">pg_catalog</strong> and <strong id="EN-US_TOPIC_0000001145814359__b842352706115236">information_schema</strong> schemas.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001145814359__tb97625a52fd74c12a5186c62b31ad454" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_STAT_SYS_TABLES columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001145814359__r25421b4179a64d22af1eec426478766b"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001145814359__a27ce8f437a17473a9d6cd91fcf4fa420"><strong id="EN-US_TOPIC_0000001145814359__b84235270691445">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001145814359__a80b9bfeefd96489aa97df2c6ec7a5291">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001145814359__acb0b6c7abfdc4ffb8c058d615149643d">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001145814359__r077dbad6b6d34e838de72074c4d75fa8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a96c854cdc73d4032bfca943b20e1f973">relid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a5bb834a37ceb4a848e10729fa1904f9f">oid</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__ada370e6b77324aeba7875db0033a65f2">Table OID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r161c41284bb64327884b03da1c4080a8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a33f6dac45b134519b73a1d01e0b6ac31">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a5e75ea67f438419aa9dc4f7d41c09c7c">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__a280b53ee560a47edb26e68afd044c385">Schema name of the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r314bd31585fe47abbb6ad9705b79a880"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a6f72ea89d14e4f2d91daa2c1259ed370">relname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a60d6a76d6ba04a858d6009d9ff40216a">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__a7fcac95a3b774620be185aa4d7114dd7">Table name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r4130ed1756c24644b649dcac47f945c1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a9f9a3020841242268d5d61982d990e8e">seq_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__abd2d125c72ab49ef95d6009ffabe0c2e">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p88311054194411">Number of sequential scans started on the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r64f7a7963835418ca0331f7932916f06"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a62a39ae9cd6a4bdca79ed9945e416836">seq_tup_read</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__afae51dcea48c4e10a08fb061df70b463">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__a5199961fd08a400794c507eeca1bf54d">Number of rows that have live data fetched by sequential scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__rf5cb97b75dbb439fb51fec836f301030"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a600efc88e3fa4c66a71b1e5783cb8f42">idx_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__ab84889b7008c4f33a1613fc7db2747ab">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__adb9a9bd3c68e4bd78f76150b2ca37869">Number of index scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__reb2b45c9de0248ae90198dd916eba441"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a339e25119e2f44b78d1fd87588df89f4">idx_tup_fetch</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a745da3f507084b2d83d08af23580340e">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__a6b4fb25edd754399b6451c6ad656c5bd">Number of rows that have live data fetched by index scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r54f171917b9b40398e2c926e0621ce14"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a62c17f63d8684deaa831fdf66b181408">n_tup_ins</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a11797d4c16be4261a268b06c2433d3a7">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__a51c0c0558b644466969d2a87b54b414f">Number of rows inserted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r9fd09b835c78433cb88d0006b9387bcc"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a31bc18e80aed4ecb80424e1a7ba9e480">n_tup_upd</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__ae75fefc7c1354564a0cdabcb6e3ac448">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__af2bd3f137e2348598479a5f096d27ca5">Number of rows updated</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__rcd0d7dc41810476e97bbdc05f2846300"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a5ff01cd181424f95831b2448affc14cf">n_tup_del</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__ae4f48a9a5ebc444c8f39252655b31dca">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__a4c9c71a0a08f4dd481f33cbb7f9801eb">Number of rows deleted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r2ee5fc81f41f42abba81d1601411a8cd"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a26d77c6135d948cc957e1e35a24d4cf4">n_tup_hot_upd</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__afce652daf9d943729c6ee713238e8407">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__af6957165bccf42afb715286839857084">Number of rows HOT updated (that is, with no separate index update required)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__rdf8ba071002e45bb9a823c2119342b2e"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__ad9a079cfb75b49ddbdada753943dd208">n_live_tup</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__ae7d63eceeea049ba94d64f8b8938e577">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__a86a7ba4b0e234674a491dbb2e46e45a0">Estimated number of live rows</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__rcb98eb04ca104f39b38bff2694c800ff"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__aaa8163822fe14a5e8435851b5debde3d">n_dead_tup</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a6f581dc5d9154477b6370ea6dcc1ee83">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__ab428f86b8fc24615ba1f990d7da90ab6">Estimated number of dead rows</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r8257b7045d9c4d8c9041bf88888934e1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__accb0d5d0239f4186b3ba87ccba9bf76d">last_vacuum</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__af74a5aa0d27d40bda00afe94bc3a1b04">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p15913313466">Last time at which this table was manually vacuumed (excluding <strong id="EN-US_TOPIC_0000001145814359__b20741142733716">VACUUM FULL</strong>)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r6d1603eba3ab47bf909772056f6522bb"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__aa907d8ed0c654a5792bf02a304123c33">last_autovacuum</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a34fbd7caa2c14751bdbbfc23dd8c73ed">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p159633114610">Last time at which this table was automatically vacuumed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r81ed548e2ec046b8befc6fa6c4b7dff8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a4715912fdceb4b2cb4996ebf53495839">last_analyze</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a71e403ecea6e4bcf8591e56a84bdd5e4">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p260133164620">Last time at which this table was analyzed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r71499082c68c4e26b94f19ae12c6d5ab"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a48e34071102842828278c12f9a13b259">last_autoanalyze</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a72e4ec825dcf49b3bfa2223105c0585a">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p76018338464">Last time at which this table was automatically analyzed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__rd3b87f436bec4b2980aed652933670e3"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__ad5e69ca639824001857281d7058fd538">vacuum_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a1dc7b3d670534c0cb16ac1db063cc6c1">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p15601335463">Number of vacuum operations (excluding <strong id="EN-US_TOPIC_0000001145814359__b646333713376">VACUUM FULL</strong>)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r8e461a190d0147928b1115674c5ccede"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__aab43309c810b4f8087f86f82c4d62ca6">autovacuum_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a33b7ce62abfc4b96b37ac2f102cf2ea4">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p46043364616">Number of autovacuum operations</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__r08d0ff4e4de94602887d4d9b8d6c9301"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__ac0c8cabdf21345f7b8be44d55d1b5897">analyze_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__af94a55204a904319a6fa220ec2d5bab8">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p1861183314610">Number of analyze operations</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001145814359__rb3d7842d22e649638f7f3bbac18b72d2"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001145814359__a2875319d6b42423693aa2ad574ef011d">autoanalyze_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001145814359__a9d8b3c74324a4bcd98d6a3fefdeeabc9">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001145814359__p126112336463">Number of autoanalyze operations</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
</div>
</div>