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-2020, 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; /* statistics object this data is for */
34 
35 #ifdef CATALOG_VARLEN /* variable-length fields start here */
36 
37  pg_ndistinct stxdndistinct; /* ndistinct coefficients (serialized) */
38  pg_dependencies stxddependencies; /* dependencies (serialized) */
39  pg_mcv_list stxdmcv; /* MCV (serialized) */
40 
41 #endif
42 
44 
45 /* ----------------
46  * Form_pg_statistic_ext_data corresponds to a pointer to a tuple with
47  * the format of pg_statistic_ext_data relation.
48  * ----------------
49  */
51 
52 #endif /* PG_STATISTIC_EXT_DATA_H */
CATALOG(pg_statistic_ext_data, 3429, StatisticExtDataRelationId)
unsigned int Oid
Definition: postgres_ext.h:31
FormData_pg_statistic_ext_data
FormData_pg_statistic_ext_data * Form_pg_statistic_ext_data