]> begriffs open source - ai-pg/blob - full-docs/txt/catalog-pg-statistic-ext.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / catalog-pg-statistic-ext.txt
1
2 52.52. pg_statistic_ext #
3
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.
7
8    Table 52.52. pg_statistic_ext Columns
9
10    Column Type
11
12    Description
13
14    oid oid
15
16    Row identifier
17
18    stxrelid oid (references pg_class.oid)
19
20    Table containing the columns described by this object
21
22    stxname name
23
24    Name of the statistics object
25
26    stxnamespace oid (references pg_namespace.oid)
27
28    The OID of the namespace that contains this statistics object
29
30    stxowner oid (references pg_authid.oid)
31
32    Owner of the statistics object
33
34    stxkeys int2vector (references pg_attribute.attnum)
35
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
39
40    stxstattarget int2
41
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.
48
49    stxkind char[]
50
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
54    expression statistics
55
56    stxexprs pg_node_tree
57
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.
62
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.