doc-exports/docs/dws/dev/dws_04_0766.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_0000001188323606"></a><a name="EN-US_TOPIC_0000001188323606"></a>
<h1 class="topictitle1">PG_STAT_USER_TABLES</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001188323606__en-us_topic_0059777497_p751712394413"><strong id="EN-US_TOPIC_0000001188323606__b842352706184522">PG_STAT_USER_TABLES</strong> displays status information about user-defined ordinary tables and TOAST tables in all namespaces.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188323606__t5523907597b345b0b2c821a04a2017eb" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_STAT_USER_TABLES columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188323606__ra07cf8d1e3d243bba323a67bebfe8ab6"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001188323606__a1ab6ca09ce294a7e9fdfb524aa556726"><strong id="EN-US_TOPIC_0000001188323606__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_0000001188323606__a1c42e8d63d98481c872c911efd5a9a93">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_0000001188323606__aaceab1c5eed34c94826ca78c4a3112f5">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001188323606__rbd0cb3cb7d8e4fe48ddba6acb269bef1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__aa2da4c9bd30c4c2593c2003fe3dbfcda">relid</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__acad2a252311f4990b507578a430eeec1">oid</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a02a829f83c6847bdbe9a335ecc39c42b">Table OID</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r9926a85391294d84a7c14e15dc5b3874"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__ab035ee0a99b448edb67ea17d079496f1">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__ae2c07c78250347a8922aca091b6788be">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__ae3f6144410bf4b66b654968dc084c7a3">Schema name of the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r1af3a129466742858e5f6f7498be5950"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__abff1c59a759c4e218a141466866c3bc7">relname</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__a7a2422d242e147df8cc26cc2fbae2ed4">name</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__af86a8927d04c4164a5131421cfbe4bc7">Name of a table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r3ee2b6457a0b450fb44bf1670f87eb7b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a4c0518f50fa0415dac6d212343778a55">seq_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__ae1b9b475f7494d78b3596ba6066a08df">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__acd2c4d197ed240e0b62d5f24cc80d64a">Number of sequential scans started on the table</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r0da01d10f5d7447bb6b0c788920a570a"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__aa729110ab7684f07a1ded2f6ef36cb95">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_0000001188323606__a0c171169fb4a4d278fa8d80743cbbcb8">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a47518359017841629bd1ff68827aaa4f">Number of rows that have live data fetched by sequential scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r9d7a0e4ebc6f4a9ab12cea14962f0393"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a479be393f79b43c095cd7898da366cd6">idx_scan</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__ae1c39522a5734193ab567d0883fc86d4">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__aa7c2bcc2abaf4b8d9956048f5efe1f22">Number of index scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r68cf99987f5e42948a580bdfe96e92f2"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__ae01c99e85e324a93a327507bfaced66a">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_0000001188323606__a2e47f3951d374a47bac4058bd4610430">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a1c3bb332d33047f483eec656a82d50a8">Number of rows that have live data fetched by index scans</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__rb5f0f593dca945728add0651beba2509"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a51673f195f87439cb6fa860d7500a317">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_0000001188323606__ac9eb25b3196f4d4f97bbc1153eff8fee">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a87fbd142875e4275bb220d240bed4f0e">Number of rows inserted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r8a3d9a6781724b65b869209c59cd133a"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__aa78495bb45df456089388fbf1fa6aba4">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_0000001188323606__aa90897e553f0453982db6da38fbf8c71">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a17d99e28a91240838f102d10e2420e5b">Number of rows updated</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r67d41afde3e2411398d43f0a7248e825"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a17c44c8984ef40d89e3ad5c22572dd37">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_0000001188323606__adddbef7d808b43eeb4ad8dae2e6a8bff">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a112cdcbd66d24df0a6c6cf1198baf3e7">Number of rows deleted</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r31fce8f80d824e9993d5d52dc1ad47ce"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a146957298dcc4c859e53f64bc989f678">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_0000001188323606__a166b8cb42a954de885c8a7f3478de8c7">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a3e3348171457416ab9e806786249b456">Number of rows updated by <strong id="EN-US_TOPIC_0000001188323606__b167661958154114">HOT</strong> (no separate index update is required)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r491e3b44ceef4893a9d1f15df1f79b1b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__aef5ba0b736924650bdd4ae11cea67589">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_0000001188323606__a35dbb74402d840359df2effc26b51d1b">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a7967e79a30b943f8b6f3bc86d5d6d201">Estimated number of live rows</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r5e02b1a25900471ca49f46f1727bfc31"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__ae4d220ba0fac492e9ebc3f26142a414f">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_0000001188323606__a919b8e8f791c47b392916618037a47e9">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__ab348dc1c7df24633904ffd26de2a3499">Estimated number of dead rows</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r4d4ffcde98254973adc65b1ff9c2c9e0"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a87aeadeecca04539ba2cb88d551ffd58">last_vacuum</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__ace848cb1998c453ca3a37b46266e8ac8">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_0000001188323606__aedc40c9806f9415395206fc5c70fec45">Last time at which this table was manually vacuumed (excluding <strong id="EN-US_TOPIC_0000001188323606__b97429266141116">VACUUM FULL</strong>)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__rd08a3ccf345c424dbad2f94f11d85856"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a68c88146f8544dd9b5b00cd2ab2f672c">last_autovacuum</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__a4fe1aa0befb54614a8adb5a52cd70390">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_0000001188323606__a21bf9682d7e8435cbddc92f72400ad95">Last time at which this table was automatically vacuumed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r6be884b32dff45b6a2acc8c8e8eb4abd"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a6d21b036e7f34bb78c2dd012ef698543">last_analyze</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__ad3525b1fb6494bfb9e764031a37e22fa">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_0000001188323606__ac57e8fbbdabc44078b9545114e79ce24">Last time at which this table was analyzed</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r09c44c1648a64330846138f1b88d98b6"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a0d99bf82ef4c4bf98d371da15c5df8ee">last_autoanalyze</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__a873b4cc00d6147c3ab941b39923284c9">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_0000001188323606__a42176d2e6fb24a1aa561dae668f8102c">Time of the last <strong id="EN-US_TOPIC_0000001188323606__b24991826041116">AUTOANALYZE</strong></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__ra3bfe181e8bc4c33b69e051345cdd48f"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__af10cf1b80aa342f78db6fac4006e9b1e">vacuum_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__ad53ea2c95b2c4fef83416a7e8a74f7da">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__aab6836865d0149de9369dcbfb2a2231a">Number of vacuum operations (excluding <strong id="EN-US_TOPIC_0000001188323606__b167823845141116">VACUUM FULL</strong>)</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__r81233bc5c6604c8a90c9975fed051c75"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__a6e641495b7f841a78f453803df0f0941">autovacuum_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__a445a1a2ece334312aa7adda3ab480f0f">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a5fb88cc18af0458cafa07c602e634a58">Number of autovacuum operations</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__rbf90a3207f384e7bac7a26faf28bb782"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__ad3d9d2900ed745258abb1bcd00aba530">analyze_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__afa2fc75a627a4a6fade057d786bd3180">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__ab0efc455c01743bb99a5bc8828f23d61">Number of analyze operations</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001188323606__rd7f25fbeb43540d6a18c2b6e8f723aea"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001188323606__abf98b0bc545b4d54bf6272beeb4adcdf">autoanalyze_count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001188323606__ab5f0931e8ba049109c56eda73a3362c9">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001188323606__a319c097bfa8c42248c13e34724b05f9e">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>