2 52.52. pg_statistic_ext #
4 The catalog pg_statistic_ext holds definitions of extended planner
5 statistics. Each row in this catalog corresponds to a statistics object
6 created with CREATE STATISTICS.
8 Table 52.52. pg_statistic_ext Columns
18 stxrelid oid (references pg_class.oid)
20 Table containing the columns described by this object
24 Name of the statistics object
26 stxnamespace oid (references pg_namespace.oid)
28 The OID of the namespace that contains this statistics object
30 stxowner oid (references pg_authid.oid)
32 Owner of the statistics object
34 stxkeys int2vector (references pg_attribute.attnum)
36 An array of attribute numbers, indicating which table columns are
37 covered by this statistics object; for example a value of 1 3 would
38 mean that the first and the third table columns are covered
42 stxstattarget controls the level of detail of statistics accumulated
43 for this statistics object by ANALYZE. A zero value indicates that no
44 statistics should be collected. A null value says to use the maximum of
45 the statistics targets of the referenced columns, if set, or the system
46 default statistics target. Positive values of stxstattarget determine
47 the target number of “most common values” to collect.
51 An array containing codes for the enabled statistics kinds; valid
52 values are: d for n-distinct statistics, f for functional dependency
53 statistics, m for most common values (MCV) list statistics, and e for
58 Expression trees (in nodeToString() representation) for statistics
59 object attributes that are not simple column references. This is a list
60 with one element per expression. Null if all statistics object
61 attributes are simple references.
63 The pg_statistic_ext entry is filled in completely during CREATE
64 STATISTICS, but the actual statistical values are not computed then.
65 Subsequent ANALYZE commands compute the desired values and populate an
66 entry in the pg_statistic_ext_data catalog.