PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_statistic_ext_data.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_statistic_ext_data.h
4 * definition of the "extended statistics data" system catalog
5 * (pg_statistic_ext_data)
6 *
7 * This catalog stores the statistical data for extended statistics objects.
8 *
9 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
10 * Portions Copyright (c) 1994, Regents of the University of California
11 *
12 * src/include/catalog/pg_statistic_ext_data.h
13 *
14 * NOTES
15 * The Catalog.pm module reads this file and derives schema
16 * information.
17 *
18 *-------------------------------------------------------------------------
19 */
20#ifndef PG_STATISTIC_EXT_DATA_H
21#define PG_STATISTIC_EXT_DATA_H
22
23#include "catalog/genbki.h"
24#include "catalog/pg_statistic_ext_data_d.h" /* IWYU pragma: export */
25
26/* ----------------
27 * pg_statistic_ext_data definition. cpp turns this into
28 * typedef struct FormData_pg_statistic_ext_data
29 * ----------------
30 */
32
34{
35 Oid stxoid BKI_LOOKUP(pg_statistic_ext); /* statistics object
36 * this data is for */
37 bool stxdinherit; /* true if inheritance children are included */
38
39#ifdef CATALOG_VARLEN /* variable-length fields start here */
40
41 pg_ndistinct stxdndistinct; /* ndistinct coefficients (serialized) */
42 pg_dependencies stxddependencies; /* dependencies (serialized) */
43 pg_mcv_list stxdmcv; /* MCV (serialized) */
44 pg_statistic stxdexpr[1]; /* stats for expressions */
45
46#endif
47
49
51
52/* ----------------
53 * Form_pg_statistic_ext_data corresponds to a pointer to a tuple with
54 * the format of pg_statistic_ext_data relation.
55 * ----------------
56 */
58
60
62
64
65#endif /* PG_STATISTIC_EXT_DATA_H */
#define BEGIN_CATALOG_STRUCT
Definition genbki.h:37
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:105
#define BKI_LOOKUP(catalog)
Definition genbki.h:65
#define END_CATALOG_STRUCT
Definition genbki.h:38
#define DECLARE_TOAST(name, toastoid, indexoid)
Definition genbki.h:82
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:42
#define MAKE_SYSCACHE(name, idxname, nbuckets)
Definition genbki.h:146
END_CATALOG_STRUCT typedef FormData_pg_statistic_ext_data * Form_pg_statistic_ext_data
FormData_pg_statistic_ext_data
unsigned int Oid
static int fb(int x)