pg_statistic
pg_statistic
also stores statistical data about the values of index expressions. These are described as if they were actual data columns; in particular, starelid
references the index. No entry is made for an ordinary non-expression index column, however, since it would be redundant with the entry for the underlying table column.
Statistical information about a table’s contents should be considered sensitive (for example: minimum and maximum values of a salary column). pg_stats
is a publicly readable view on pg_statistic
that only exposes information about those tables that are readable by the current user.
Parent topic: System Catalogs Definitions