PostgreSQL Source Code  git master
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-2022, 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"
25 
26 /* ----------------
27  * pg_statistic_ext_data definition. cpp turns this into
28  * typedef struct FormData_pg_statistic_ext_data
29  * ----------------
30  */
31 CATALOG(pg_statistic_ext_data,3429,StatisticExtDataRelationId)
32 {
33  Oid stxoid BKI_LOOKUP(pg_statistic_ext); /* statistics object
34  * this data is for */
35  bool stxdinherit; /* true if inheritance children are included */
36 
37 #ifdef CATALOG_VARLEN /* variable-length fields start here */
38 
39  pg_ndistinct stxdndistinct; /* ndistinct coefficients (serialized) */
40  pg_dependencies stxddependencies; /* dependencies (serialized) */
41  pg_mcv_list stxdmcv; /* MCV (serialized) */
42  pg_statistic stxdexpr[1]; /* stats for expressions */
43 
44 #endif
45 
47 
48 /* ----------------
49  * Form_pg_statistic_ext_data corresponds to a pointer to a tuple with
50  * the format of pg_statistic_ext_data relation.
51  * ----------------
52  */
54 
55 DECLARE_TOAST(pg_statistic_ext_data, 3430, 3431);
56 
57 DECLARE_UNIQUE_INDEX_PKEY(pg_statistic_ext_data_stxoid_inh_index, 3433, StatisticExtDataStxoidInhIndexId, on pg_statistic_ext_data using btree(stxoid oid_ops, stxdinherit bool_ops));
58 
59 
60 #endif /* PG_STATISTIC_EXT_DATA_H */
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
FormData_pg_statistic_ext_data * Form_pg_statistic_ext_data
DECLARE_TOAST(pg_statistic_ext_data, 3430, 3431)
CATALOG(pg_statistic_ext_data, 3429, StatisticExtDataRelationId)
DECLARE_UNIQUE_INDEX_PKEY(pg_statistic_ext_data_stxoid_inh_index, 3433, StatisticExtDataStxoidInhIndexId, on pg_statistic_ext_data using btree(stxoid oid_ops, stxdinherit bool_ops))
FormData_pg_statistic_ext_data
unsigned int Oid
Definition: postgres_ext.h:31