forked from docs/doc-exports
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>
138 lines
14 KiB
HTML
138 lines
14 KiB
HTML
<a name="EN-US_TOPIC_0000001098815024"></a><a name="EN-US_TOPIC_0000001098815024"></a>
|
|
|
|
<h1 class="topictitle1">PG_EXT_STATS</h1>
|
|
<div id="body1530499427337"><p id="EN-US_TOPIC_0000001098815024__p8060118"><strong id="EN-US_TOPIC_0000001098815024__b899153719318">PG_EXT_STATS</strong> displays extension statistics stored in the <a href="dws_04_0620.html">PG_STATISTIC_EXT</a> table. The extension statistics means multiple columns of statistics.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001098815024__t0cc79f66b0534f8289e3e9823cfdbbd6" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_EXT_STATS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001098815024__r694980dfc91e46bbb6e75e98ce75c675"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001098815024__ad54d37637d5e449c8030e06cd74fade6">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001098815024__af2fac1fe8d0f4d1eadd73c01359f7f51">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001098815024__acf13354fe5ee44829a684de4fa0baaba">Reference</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001098815024__a870dd282f1274282a1e0c49641e774a3">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001098815024__rbf9af765b4da45e799c4d577ce345eb6"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__afb882b5fac144bcd9632859fc9fdb029">schemaname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__aaaad16af290e41a386b0f840ebfb294e">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__a8dd065362bdd4afca70e8d8c425546f7"><a href="dws_04_0600.html">PG_NAMESPACE</a>.nspname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__a144deaf587e74676bfb323bac9e4804e">Name of the schema that contains a table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__rc4653bf79b104b5c9768c6cc9b5d9724"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__a97baf92fd13d4cad8e213ae3cdc9cfab">tablename</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__af11a9c4ef65a48bd8b9d30564335b325">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__a59c80818aaff4f32bea9c4caf06da557"><a href="dws_04_0578.html">PG_CLASS</a>.relname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__a31673dffc45c41fbbbb78af7dafa09de">Name of a table</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__row18168535104419"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__p1116816355446">attname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__p816833544417">int2vector</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__p171686353448"><a href="dws_04_0620.html">PG_STATISTIC_EXT</a>.stakey</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__p18168203516448">Indicates the columns to be combined for collecting statistics.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__r057f829e63a9454c8b61073f0171a756"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__ad6fee5c4532049e6b8ff04528088a069">inherited</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__ad6250e5c32c9445dae72d57489e4eb01"><span id="EN-US_TOPIC_0000001098815024__text15054279389">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__a0887a46cafa340bbb9b2a9a33d215c35">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__a0c8823227403445d93907f4bb0a8e376">Includes inherited sub-columns if the value is <strong id="EN-US_TOPIC_0000001098815024__b25101742152720">true</strong>; otherwise, indicates the column in a specified table.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__r0c30976e19e14cc1ba7c086a1c2d6c2c"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__a6a620f4fa2dd470288c29e44195e50fe">null_frac</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__a37079f4f16f5455c814d14e65cdf151c">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__a10453840e7a3456c952ec3ca186bc890">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__ab72787ac6bec45e8b9fb856fa9897b47">Percentage of column combinations that are null to all records</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__r7a2db89099af4ee7addf9497965f53c7"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__a2b83121a6dfd4e148b93ff7fff716448">avg_width</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__a6dab776c1bd544a787b8c2845c54cddf">integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__ad40a33b8b91d4118b43529892350f778">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__ac5310941d33f4c27801238720be82aaf">Average width of column combinations. The unit is byte.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__r6e7ea05686a446a7a25d0fb71fbb4187"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__abf72bff9d598400083565ae00b730436">n_distinct</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__afa1cc6f996f84ffea4e4d28da3137c16">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__a23a4007c16414663844c28c0fa03f0f1">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><ul id="EN-US_TOPIC_0000001098815024__u5c026370c3444238b630ec986591d772"><li id="EN-US_TOPIC_0000001098815024__l12a0ebe92bf747808dd37d54ac8f149e">Estimated number of distinct values in a column combination if the value is greater than 0</li><li id="EN-US_TOPIC_0000001098815024__ldfa12f07e2744a99bb609c9c664433fe">Negative of the number of distinct values divided by the number of rows if the value is less than 0</li></ul>
|
|
<p id="EN-US_TOPIC_0000001098815024__a79a192f676dd4db0b4020a1b88a72d50">The negated form is used when <strong id="EN-US_TOPIC_0000001098815024__b1255146121319">ANALYZE</strong> believes that the number of distinct values is likely to increase as the table grows.</p>
|
|
<p id="EN-US_TOPIC_0000001098815024__aa32274571f454c66be3dd68a19b8b9dd">The positive form is used when the column seems to have a fixed number of possible values. For example, <strong id="EN-US_TOPIC_0000001098815024__b8784173752010">-1</strong> indicates that the number of distinct values is the same as the number of rows for a column combination.</p>
|
|
<ul id="EN-US_TOPIC_0000001098815024__ul9851195416453"><li id="EN-US_TOPIC_0000001098815024__li6440195854511">The number of distinct values is unknown if the value is <strong id="EN-US_TOPIC_0000001098815024__b11722840112019">0</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__rdfb1afdbb25240d18b3828df98e3878b"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__a37a8f0b0575f4576b57bb4fb33b54600">n_dndistinct</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__a463c33036cf64c15a036e229df465507">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__a45622a6ee3f248a69c23e75924c008dc">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__ae119bd57505b426789e67631a681b68b">Number of unique not-null data values in the <strong id="EN-US_TOPIC_0000001098815024__b84235270695425">dn1</strong> column combination</p>
|
|
<ul id="EN-US_TOPIC_0000001098815024__u0b6d15c737404aa1ac54a78ba72c77e9"><li id="EN-US_TOPIC_0000001098815024__lac4b6811bd0d4693be831cd371d1ca79">Exact number of distinct values if the value is greater than 0</li><li id="EN-US_TOPIC_0000001098815024__l645d8e55884f4557ba0ae2d6f778c7a7">Negative of the number of distinct values divided by the number of rows if the value is less than 0 For example, if a value in a column combination appears twice in average, <strong id="EN-US_TOPIC_0000001098815024__b84235270616816">n_dndistinct</strong> equals <strong id="EN-US_TOPIC_0000001098815024__b7216559192219">-0.5</strong>.</li><li id="EN-US_TOPIC_0000001098815024__l0fc0a32dc3cd48a7a00a093d3ce827b2">The number of distinct values is unknown if the value is <strong id="EN-US_TOPIC_0000001098815024__b588635612402">0</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__rea3d8a5ce6fb43ca88341cd20b72d475"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__ade8b29c686a14ba3a3f0771f1ec3efd3">most_common_vals</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__a0458f418f54947c1b242db2c9ca44780">anyarray</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__a952a1455a1f443118bf6e09c1b429633">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__a03013686013e49d6a6d2d7acdc5b75b6">List of the most common values in a column combination. If this combination does not have the most common values, <strong id="EN-US_TOPIC_0000001098815024__b15394205082019">most_common_vals_null</strong> will be <strong id="EN-US_TOPIC_0000001098815024__b16394175032013">NULL</strong>. None of the most common values in <strong id="EN-US_TOPIC_0000001098815024__b1070618559206">most_common_vals</strong> is <strong id="EN-US_TOPIC_0000001098815024__b77065552200">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__r6a787e8d272d411a9ac8d945230b8da5"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__aeefde76be849497282f623ad90390e76">most_common_freqs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__a8fad72e3ca2f41b2a13f712485c32035">real[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__a299ec1adab1d4746b96a250a45ac6863">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__a29c1b15de34a4a18b8a984c499e04ff6">List of the frequencies of the most common values, that is, the number of occurrences of each value divided by the total number of rows. (NULL if <strong id="EN-US_TOPIC_0000001098815024__b16611528122716">most_common_vals</strong> is <strong id="EN-US_TOPIC_0000001098815024__b1684210301278">NULL</strong>)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__row481288129300"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__p326086409306">most_common_vals_null</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__p240541499306">anyarray</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__p22290309306">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__p463337739306">List of the most common values in a column combination. If this combination does not have the most common values, <strong id="EN-US_TOPIC_0000001098815024__b2082014253216">most_common_vals_null</strong> will be <strong id="EN-US_TOPIC_0000001098815024__b48200257210">NULL</strong>. At least one of the common values in <strong id="EN-US_TOPIC_0000001098815024__b191471812175913">most_common_vals_null</strong> is <strong id="EN-US_TOPIC_0000001098815024__b319792510405">NULL</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001098815024__r0ddfb3bd8e1044749d41ada07607587e"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001098815024__p215619499306">most_common_freqs_null</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001098815024__p16874219306">real[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001098815024__p24634229306">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001098815024__p653194959306">List of the frequencies of the most common values, that is, the number of occurrences of each value divided by the total number of rows. (<strong id="EN-US_TOPIC_0000001098815024__b1318619684210">NULL</strong> if <strong id="EN-US_TOPIC_0000001098815024__b92807556412">most_common_vals_null</strong> is <strong id="EN-US_TOPIC_0000001098815024__b22803554418">NULL</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>
|
|
|