Normally there is one entry, with
false, for each statistics object that has been analyzed. If the table has inheritance children or partitions, a second entry with
true is also created. This row represents the statistics object over the inheritance tree, i.e., statistics for the data you'd see with
SELECT * FROM , whereas the
false row represents the results of
SELECT * FROM ONLY .
pg_statistic_ext_data should not be readable by the public, since the contents might be considered sensitive. (Example: most common combinations of values in columns might be quite interesting.)
pg_stats_ext is a publicly readable view on
pg_statistic_ext_data (after joining with
pg_statistic_ext) that only exposes information about those tables and columns that are readable by the current user.
Extended statistics object containing the definition for this data
If true, the stats include values from child tables, not just the values in the specified relation
N-distinct counts, serialized as
Functional dependency statistics, serialized as
MCV (most-common values) list statistics, serialized as
Per-expression statistics, serialized as an array of
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.