PG_EXT_STATS
PG_EXT_STATS displays extended statistics stored in PG_STATISTIC_EXT.
Name |
Type |
Reference |
Description |
---|---|---|---|
schemaname |
name |
nspname in PG_NAMESPACE |
Name of the schema that contains a table. |
tablename |
name |
relname in PG_CLASS |
Table name. |
attname |
int2vector |
stakey in PG_STATISTIC_EXT |
Columns to be combined for collecting statistics |
inherited |
Boolean |
- |
Table inheritance is 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 bytes. |
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. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.