doc-exports/docs/dws/dev/dws_04_0999.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 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-11-02 09:07:47 +00:00

81 lines
7.4 KiB
HTML

<a name="EN-US_TOPIC_0000001510162945"></a><a name="EN-US_TOPIC_0000001510162945"></a>
<h1 class="topictitle1">PV_RUNTIME_RELSTATS</h1>
<div id="body0000001420149161"><p id="EN-US_TOPIC_0000001510162945__p5285125742516"><strong id="EN-US_TOPIC_0000001510162945__b156191587161">PV_RUNTIME_RELSTATS</strong> displays table-level statistics in the memory generated by autoanalyze. The descriptions of the columns in <strong id="EN-US_TOPIC_0000001510162945__b14915192931613">PV_RUNTIME_RELSTATS</strong> are the same as those in <a href="dws_04_0578.html">PG_CLASS</a>. This view is used only by clusters of version 8.2.0 or later.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001510162945__table1720587121210" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PV_RUNTIME_RELSTATS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001510162945__row162054717122"><th align="left" class="cellrowborder" valign="top" width="20.06200620062006%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001510162945__p6205171124">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.99199919991999%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001510162945__p220519711125">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="59.94599459945995%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001510162945__p1320687201216">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001510162945__row11206147131217"><td class="cellrowborder" valign="top" width="20.06200620062006%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162945__p1720611719129">nspname</p>
</td>
<td class="cellrowborder" valign="top" width="19.99199919991999%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162945__p420616761211">name</p>
</td>
<td class="cellrowborder" valign="top" width="59.94599459945995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162945__p172060711217">Schema name</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162945__row9206579125"><td class="cellrowborder" valign="top" width="20.06200620062006%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162945__p32068714124">relname</p>
</td>
<td class="cellrowborder" valign="top" width="19.99199919991999%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162945__p14206174121">name</p>
</td>
<td class="cellrowborder" valign="top" width="59.94599459945995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162945__p8206147131212">Name of an object, such as a table or index</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162945__row520611751218"><td class="cellrowborder" valign="top" width="20.06200620062006%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162945__p420687161213">relpages</p>
</td>
<td class="cellrowborder" valign="top" width="19.99199919991999%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162945__p52061674129">double precision</p>
</td>
<td class="cellrowborder" valign="top" width="59.94599459945995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162945__p7925102515615">Size of the on-disk representation of this table in pages (of size BLCKSZ). This is only an estimate used by the optimizer.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162945__row720637111212"><td class="cellrowborder" valign="top" width="20.06200620062006%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162945__p22069713124">reltuples</p>
</td>
<td class="cellrowborder" valign="top" width="19.99199919991999%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162945__p2020612731213">double precision</p>
</td>
<td class="cellrowborder" valign="top" width="59.94599459945995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162945__p159253259566">Number of rows in the table. This is only an estimate used by the optimizer.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162945__row10206571126"><td class="cellrowborder" valign="top" width="20.06200620062006%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162945__p1220617771213">relallvisible</p>
</td>
<td class="cellrowborder" valign="top" width="19.99199919991999%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162945__p2020613717125">integer</p>
</td>
<td class="cellrowborder" valign="top" width="59.94599459945995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162945__p13206147191216">Number of pages marked as all visible in the table. This column is used by the optimizer for optimizing SQL execution.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162945__row10206107201211"><td class="cellrowborder" valign="top" width="20.06200620062006%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162945__p120613719125">relhasindex</p>
</td>
<td class="cellrowborder" valign="top" width="19.99199919991999%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162945__p1320667151218">boolean</p>
</td>
<td class="cellrowborder" valign="top" width="59.94599459945995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162945__p1538211101585">Its value is <strong id="EN-US_TOPIC_0000001510162945__b54988239442833">true</strong> if this column is a table and has (or recently had) at least one index.</p>
<p id="EN-US_TOPIC_0000001510162945__p7382161035812">It is set by <strong id="EN-US_TOPIC_0000001510162945__b44803709442833">CREATE INDEX</strong> but is not immediately cleared by <strong id="EN-US_TOPIC_0000001510162945__b195085379142833">DROP INDEX</strong>. If the <strong id="EN-US_TOPIC_0000001510162945__b143975620742833">VACUUM</strong> process detects that a table has no index, it clears the <strong id="EN-US_TOPIC_0000001510162945__b168724332042833">relhasindex</strong> column and sets the value to <strong id="EN-US_TOPIC_0000001510162945__b143554006842833">false</strong>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162945__row720727191219"><td class="cellrowborder" valign="top" width="20.06200620062006%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162945__p19207147111212">changes</p>
</td>
<td class="cellrowborder" valign="top" width="19.99199919991999%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162945__p7207879126">bigint</p>
</td>
<td class="cellrowborder" valign="top" width="59.94599459945995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162945__p7207157161217">Total historical modifications in the table by the time the lightweight autoanalyze is triggered.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001510162945__row16971121811611"><td class="cellrowborder" valign="top" width="20.06200620062006%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001510162945__p13972181831617">level</p>
</td>
<td class="cellrowborder" valign="top" width="19.99199919991999%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001510162945__p79721918121614">text</p>
</td>
<td class="cellrowborder" valign="top" width="59.94599459945995%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001510162945__p1972141814161">Current phase of the memory statistics generated by the lightweight autoanalyze. It can be <strong id="EN-US_TOPIC_0000001510162945__b74522922214">local</strong>, <strong id="EN-US_TOPIC_0000001510162945__b136906104228">sendlist</strong>, or <strong id="EN-US_TOPIC_0000001510162945__b15924121272213">global</strong>.</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>