PG_EXT_STATS
PG_EXT_STATS displays extended statistics stored in PG_STATISTIC_EXT. The extension statistics means multiple columns of statistics. For details about the columns, see Table 1.
Name |
Type |
Reference |
Description |
---|---|---|---|
schemaname |
name |
PG_NAMESPACE.nspname |
Name of the schema that contains a table. |
tablename |
name |
relname in PG_CLASS |
Table name |
attname |
int2vector |
PG_STATISTIC_EXT.stakey |
Columns to be combined for collecting statistics |
inherited |
boolean |
- |
Inherited tables are not supported currently. The value of this column is false. |
null_frac |
real |
- |
Percentage of column combinations that are null to all records |
avg_width |
integer |
- |
Average width of column combinations, in byte |
n_distinct |
real |
- |
|
n_dndistinct |
real |
- |
Number of not-null distinct values in the dn1 column combination.
|
most_common_vals |
anyarray |
- |
List of the most common values in a column combination. If this combination does not have the most common values, this column will be NULL. None of the most common values in the column is NULL. |
most_common_freqs |
real[] |
- |
List of the frequencies of the most common values in a column combination. The frequencies are obtained by dividing the number of occurrences of each value by the number of rows. If the value of most_common_vals is NULL, the value of this column is NULL. |
most_common_vals_null |
anyarray |
- |
List of the most common values in a column combination. If this combination does not have the most common values, this column will be NULL. At least one of the common values in the column is NULL. |
most_common_freqs_null |
real[] |
- |
List of the frequencies of the most common values in a column combination. The frequencies are obtained by dividing the number of occurrences of each value by the number of rows. If the value of most_common_vals_null is NULL, the value of this column is NULL. |
histogram_bounds |
anyarray |
- |
Boundary value list of the histogram |
partitionname |
name |
PG_PARTITION.relname |
Name of the level-1 partition in the partitioned table. For a non-partitioned table, this field is left blank. |
subpartitionname |
name |
PG_PARTITION.relname |
Name of the level-2 partition in the partitioned table. For a distributed system, this field is left blank. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot