forked from docs/doc-exports
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>
121 lines
12 KiB
HTML
121 lines
12 KiB
HTML
<a name="EN-US_TOPIC_0000001233761871"></a><a name="EN-US_TOPIC_0000001233761871"></a>
|
|
|
|
<h1 class="topictitle1">PG_STATISTIC_EXT</h1>
|
|
<div id="body1539078260184"><p id="EN-US_TOPIC_0000001233761871__en-us_topic_0059778435_p18731450056"><strong id="EN-US_TOPIC_0000001233761871__b12966547165119">PG_STATISTIC_EXT</strong> records extended statistics about tables in a database. The range of extended statistics to be collected is specified by users. Only system administrators can access this system catalog.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233761871__tfc6d8a947b084916bf39cc0bf6f2b535" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="EN-US_TOPIC_0000001233761871__b15908812175214">PG_STATISTIC_EXT</strong> columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233761871__rbffef7a29a3c40e78644a11eba1fd237"><th align="left" class="cellrowborder" valign="top" width="18.25%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233761871__ad78371c326f843f8905184b144b787de">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.85%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001233761871__ab6a716182f6d4502921eaa13b1d09747">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="66.9%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001233761871__a258ea1aa33934d2c8fa2000aad179134">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001233761871__r9d86d1fdf06e44b79e32976f0255b928"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__a2a1d4ae62a994d38a436abfe3452bdb1">starelid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__ae07095417eb84217a1e72599fe502546">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__a8a342a034165445b99df274b03965195">Table or index which the described column belongs to</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__r19c2b6fcaad845719bec629c9c5ad3fc"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__ac8adfa6165184f73b3cbc14de318064c">starelkind</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__a6ba04a85b9c24bb3b3101874ee475163">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__a87d7b497779543a9b3c8cdb5edaba594">Type of an object</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__r1d415f19e0a44189a3084d735b023858"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__a2182c95baa50486da7ec3ae8241e60be">stainherit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__ad99a84fb0a3144d484f9944459b4067c"><span id="EN-US_TOPIC_0000001233761871__text1155673073816">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__adddf1f3728204d1dbbf9547acb3a6daa">Whether to collect statistics for objects that have inheritance relationship</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__rdbc340b428bd441d9569557520c4e7a0"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__a1efc52f2158a475fa9ca21e89125dbb6">stanullfrac</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__a041eada2bcae49cc9521d7daaa0bacaf">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__ac7f9f1c9bcc8454f9c2d42da481d3e2b">Percentage of column entries that are null</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__rf2fe11bf7ce74257a22caca7e9b9dca2"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__affebaf49737440c7ae8c2e839478e9aa">stawidth</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__a25ff5c2a95244bbbaefb407f1a5d0299">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__a3bf4ca781269425e87f5026ae843dbd2">Average stored width, in bytes, of non-null entries</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__r19f270af20fe4e0798a36fd2fb4aff7a"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__ae3eb7a09db144987a1e3f1efb5e6bf56">stadistinct</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__a8e686a233cae46ab8d395bc08757483e">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__a5abacf5ae24846ccaba731410f6b6ad6">Number of distinct, not-null data values in the column for all DNs</p>
|
|
<ul id="EN-US_TOPIC_0000001233761871__u8b20d2cc80734344b0bf4f5b99fa8154"><li id="EN-US_TOPIC_0000001233761871__lb3883999c7ae4f67900c62e50ccb5056">A value greater than zero is the actual number of distinct values.</li><li id="EN-US_TOPIC_0000001233761871__l2853fa520ed044cf9c911d36649cedf4">A value less than zero is the negative of a multiplier for the number of rows in the table. (For example, <strong id="EN-US_TOPIC_0000001233761871__b2524147713">stadistinct=-0.5</strong> indicates that values in a column appear twice on average.)</li><li id="EN-US_TOPIC_0000001233761871__ldbb005cf4b4e487c8b20bf410fe4366c"><strong id="EN-US_TOPIC_0000001233761871__b678933471015">0</strong> indicates that the number of distinct values is unknown.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__row64543474101134"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__p8695731101136">stadndistinct</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__p33265624101136">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__p10161009101136">Number of unique non-null data values in the <strong id="EN-US_TOPIC_0000001233761871__b84235270695425">dn1</strong> column</p>
|
|
<ul id="EN-US_TOPIC_0000001233761871__ul24340221101136"><li id="EN-US_TOPIC_0000001233761871__li17735399101136">A value greater than zero is the actual number of distinct values.</li><li id="EN-US_TOPIC_0000001233761871__li25400864101136">A value less than zero is the negative of a multiplier for the number of rows in the table. (For example, <strong id="EN-US_TOPIC_0000001233761871__b92546201">stadistinct=-0.5</strong> indicates that values in a column appear twice on average.)</li><li id="EN-US_TOPIC_0000001233761871__li27281185101136"><strong id="EN-US_TOPIC_0000001233761871__b555783671020">0</strong> indicates that the number of distinct values is unknown.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__r1d51bbdeaaa444249dc0d00a7288cb6f"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__a7451d9e836354f728db3b7d82340e86e">stakindN</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__a91ebebc0c9574dd1acfc25e1b9c9c0dc">smallint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__a76ef7cb91b4d4908a4c493c322fd9411">Code number stating that the type of statistics is stored in Slot N of the <strong id="EN-US_TOPIC_0000001233761871__en-us_topic_0027042456_b5661315785655">pg_statistic</strong> row.</p>
|
|
<p id="EN-US_TOPIC_0000001233761871__ae7dff71f310e4b5085dcb32024e1cc37">Value range: 1 to 5</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__r2c63b498f5864107a26d23f52a3481d6"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__acb5576576ace470fbe0ef22daa9b2aac">staopN</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__ad95c5893456a4a97b49ea2f6dfad1dda">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__a19921ff982074e10847d9a93f04fc3cb">Operator used to generate the statistics stored in Slot N. For example, a histogram slot shows the < operator that defines the sort order of the data.</p>
|
|
<p id="EN-US_TOPIC_0000001233761871__a346bd5c4bd5841209ba26eb0a7aa08c0">Value range: 1 to 5</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__row38308723172423"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__p48981074172425">stakey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__p8044056172425">int2vector</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__p47588770172425">Array of a column ID</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__rbb289eae786e44d7bae5a4495bf9f97f"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__af2fce5971fc647adb9c792a5e5c50770">stanumbersN</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__aaf77a7406d8f4c0b8bd405df715d2bf0">real[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__a364ad8b398d14452ba69e29657bc520d">Numerical statistics of the appropriate type for Slot N. The value is null if the slot kind does not involve numerical values.</p>
|
|
<p id="EN-US_TOPIC_0000001233761871__a22c13d72c6e2430c981355c96140eb36">Value range: 1 to 5</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__r54753620e4a147ee9bb5b698cb01b8c3"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__a1bd2d12fa170450da81d702305b5197a">stavaluesN</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__a0ff00d1e509346e58f943970cdeac185">anyarray</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__ab748339c313842c5a073a269826085d5">Column data values of the appropriate type for Slot N. The value is null if the slot type does not store any data values. Each array's element values are actually of the specific column's data type so there is no way to define these columns' type more specifically than anyarray.</p>
|
|
<p id="EN-US_TOPIC_0000001233761871__ad73ca7acdb984d6aa9844d239a9c5a23">Value range: 1 to 5</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233761871__row1590511431613"><td class="cellrowborder" valign="top" width="18.25%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233761871__p2905181401614">staexprs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.85%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233761871__p3905111491616">pg_node_tree</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="66.9%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233761871__p5062986022442">Expression corresponding to the extended statistics information.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
|
|
</div>
|
|
</div>
|
|
|