PG_STATS
PG_STATS displays single-column statistics stored in the pg_statistic table. The GUC parameter autovacuum_naptime specifies the interval for updating statistics recorded in the view.
Name |
Type |
Reference |
Description |
---|---|---|---|
schemaname |
name |
nspname in PG_NAMESPACE |
Name of the schema that contains a table. |
tablename |
name |
PG_CLASS.relname |
Table name. |
attname |
name |
PG_ATTRIBUTE.attname |
Field name. |
inherited |
boolean |
- |
Inherited tables are not supported currently. The value of this column is false. |
null_frac |
real |
- |
Percentage of column entries that are null. |
avg_width |
integer |
- |
Average width in bytes of column's entries. |
n_distinct |
real |
- |
|
n_dndistinct |
real |
- |
Number of not-null distinct values in the dn1 column.
|
most_common_vals |
anyarray |
- |
List of the most common values in a column. If this column does not have the most common value, the value is NULL. |
most_common_freqs |
real[] |
- |
List of the frequencies of the most common values in a column. The frequencies are obtained by dividing the number of occurrences of each value by the number of rows. (NULL if most_common_vals is NULL) |
histogram_bounds |
anyarray |
- |
Frequency histogram consisting of values excluding null values and MVC values. If a value appears in the value of most_common_vals, it does not appear in the histogram. If the column data type does not have the < operator or the list specified by most_common_vals contains all values of the column, the histogram information of the column is NULL. |
correlation |
real |
- |
Correlation between the physical row sequence and logical row sequence of a column value. The value ranges from –1 to +1. When the value is close to –1 or +1, the index scan overhead is less than that when the value is close to 0 because random access to the disk is reduced. This column is NULL if the column data type does not have a < operator. |
most_common_elems |
anyarray |
- |
A list of non-null element values most often appearing. |
most_common_elem_freqs |
real[] |
- |
List that records the frequency of the most commonly used non-null elements. |
elem_count_histogram |
real[] |
- |
A histogram of the counts of distinct non-null element values. |
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