doc-exports/docs/dws/dev/dws_04_0769.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

171 lines
15 KiB
HTML

<a name="EN-US_TOPIC_0000001188163720"></a><a name="EN-US_TOPIC_0000001188163720"></a>
<h1 class="topictitle1">PG_STAT_SYS_TABLES</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001188163720__en-us_topic_0059777944_p107995517412"><strong id="EN-US_TOPIC_0000001188163720__b842352706115010">PG_STAT_SYS_TABLES</strong> displays the statistics about the system catalogs of all the namespaces in <strong id="EN-US_TOPIC_0000001188163720__b842352706115245">pg_catalog</strong> and <strong id="EN-US_TOPIC_0000001188163720__b842352706115236">information_schema</strong> schemas.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188163720__tad7e5b67bd654fafb43eb9b6a8ad3046" 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_0000001188163720__r96dcb973c3f942738bcf99c86c51d45e"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188163720__af68e104db34e4de283b0605cbac5655d"><strong id="EN-US_TOPIC_0000001188163720__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_0000001188163720__a854c2f5d42814855badd291ea991cb28">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.00000000000001%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001188163720__a7efc53bc17f1462790ff549090d726f2">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188163720__r27cc36c59d4148009a80311fe4484707"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__aa6550f1b66a8495fa97048fd0107ba78">relid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__ab96ed5d709bc4ab9a1a8f92f9823d592">oid</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__a708657bcd8a3433a81fed312eb3de400">Table OID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__rea1861bfd01e493b8960fbdab17b951b"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a1e1afbe81bbf425db14da2b9849131df">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__add9796e66c7344958bcfa9f89e793689">name</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__a9dc970bf31054846aaa7f104e1e23910">Schema name of the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r918c0d8a1393438aa1cb367b81cc76cf"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__ae725009fad5847c4b506d53e4f584598">relname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__a1a85dec459b44afa94058af02a4f67ad">name</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__ad7e8be42a7134d53a41cac60b2cddb82">Name of a table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r97adda1d84fe4de1849b9adecd681826"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a6d7ba77361c84d009abc3d40b9d2c980">seq_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__a909ff10ce24f438298a007f4a8dffd8f">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__p88311054194411">Number of sequential scans started on the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r289140c544a543f0936b4675b15cae1d"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a6cf879ded25e43fe8cb3777868d87c8d">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_0000001188163720__a392df05a57ee46509baa45351b6e3891">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__ac3df09e0ec094de3bdd2f4fdd16f2fce">Number of rows that have live data fetched by sequential scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__racc6d6b30bc84d74998987987c6a918b"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a298516be4b2e4b978d5e5c5f975ce8df">idx_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__ab59f3ab2ef324a0b840f81c302f771d9">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__a9f6946478b324000b7f80df442ca7787">Number of index scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__ree47f3075b5844a4a33cde720ef45e28"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a42f1b9167df64b0f98d8bdc21b7b5498">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_0000001188163720__aebcffd9b15b049feaa4b4eaf30165fdf">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__a2af66ed4dd9c492e960bfe7fe97dd3a6">Number of rows that have live data fetched by index scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r60e26ef808624b0c8d6ebd1395f75237"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a7dd2f5d7dd224cce80eefa87c711ff1a">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_0000001188163720__aa36be6063e184fd7922128d1431271de">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__afe86fa4488634d4fb90b2574063ec202">Number of rows inserted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r0c153ee3140145a98008877c6b6b2f45"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a325ddd3efc364f33ab151c3327e9eb75">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_0000001188163720__a40ebc749c4b2487dbe7b37d514a1f1ea">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__a4f36fd61c4af4f09b33819e41d3cc87a">Number of rows updated</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r5ffbc5cdca80407f9427b80291c06ab4"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a81672c66696b4371bee8acc9e11af338">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_0000001188163720__ab36bdc30e9344779988962fac23911c5">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__a9b19287f1e6244b8a70d3a3094f6be61">Number of rows deleted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r1f3691427c8f4ee581feca68d9f779d8"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__ad8fe085ba6444b7d9567ddad54d4bd8d">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_0000001188163720__aa3c4bb78bb084a1694d17392a65c2647">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__a4bef52bd35db4674ade4ee39fe789e52">Number of rows updated by <strong id="EN-US_TOPIC_0000001188163720__b135925414435">HOT</strong> (no separate index update is required)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__re2534b68ddfc46cf82ccc6002905adb1"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__ac884474c5799424490ee9db254619d13">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_0000001188163720__a24a2661d5f4d41a883278e8ce2cb1f0d">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__ab1e2d18e059c4fa2bf8f8b8fa2202f79">Estimated number of live rows</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r6af661f6c1b34c81a8bd0cad4e9e1ba9"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a0b27ce06b4ab4bc5919090b939710b53">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_0000001188163720__afe2386d28c7f4251924e0c9c6570ec60">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__a78eccf3ebe2649179cbfd813f10398ca">Estimated number of dead rows</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r4e48470293b04b618ed138cdf7ca6a04"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__ac1ceb7f2d02745e98cb1fcee6422bbdc">last_vacuum</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__a0bad4025b6e1498084125036e2617f2c">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__p15913313466">Last time at which this table was manually vacuumed (excluding <strong id="EN-US_TOPIC_0000001188163720__b85383582433">VACUUM FULL</strong>)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__re7ab23ebfb4a4018a3f4d1f048697935"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__aaf4fdd794e7c4864b6431ad2e0f10527">last_autovacuum</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__a57d322c70cb144ceb4b34c0399368df1">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__p159633114610">Last time at which this table was automatically vacuumed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r56e756d3e8bc4305856da1348640b815"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__ac2fe2944429f4e3483955527d4d303be">last_analyze</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__aa5f715ba2c5c4505a34d01230ac901b8">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__p260133164620">Last time at which this table was analyzed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r64ced2168d9940b081083e187f217cdb"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__ab785dc04a6c14c3897d163f6e8681aba">last_autoanalyze</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__afb36a6095494417abff7223ad8ac3c5d">timestamp with time zone</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__p76018338464">Last time at which this table was automatically analyzed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r010dd130f7434a56b89b5dec0386113a"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a99c8b3f9a3ae45abae6ebd8ce6a169af">vacuum_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__a0ac91822e8024d119e867e5eb6d72fb4">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__p15601335463">Number of vacuum operations (excluding <strong id="EN-US_TOPIC_0000001188163720__b646333713376">VACUUM FULL</strong>)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r669e25d3f3114b09b1622053404a6f79"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a43e7aed127b34faeb7be75221cf2cfb6">autovacuum_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__a821385ce12ed487d8f51152b9b60a854">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__p46043364616">Number of autovacuum operations</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r3792cc6199004f9ca60db338b743eae9"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__a5959b22ca11949bc9b064dfe54eb6f50">analyze_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__ac2a4fb4bf8ba49c08d77c4603cf0b506">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__p1861183314610">Number of analyze operations</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188163720__r9826a7f01bb84da4a30069937553ec0c"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188163720__afebed0846cd448a5bfd1e7b7c310ce47">autoanalyze_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188163720__ad735df8349f048658ff33999d765cbf1">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.00000000000001%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188163720__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>