1/*-------------------------------------------------------------------------
3 * pg_statistic_ext_data.h
4 * definition of the "extended statistics data" system catalog
5 * (pg_statistic_ext_data)
7 * This catalog stores the statistical data for extended statistics objects.
9 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
10 * Portions Copyright (c) 1994, Regents of the University of California
12 * src/include/catalog/pg_statistic_ext_data.h
15 * The Catalog.pm module reads this file and derives schema
18 *-------------------------------------------------------------------------
20#ifndef PG_STATISTIC_EXT_DATA_H
21#define PG_STATISTIC_EXT_DATA_H
24#include "catalog/pg_statistic_ext_data_d.h" /* IWYU pragma: export */
27 * pg_statistic_ext_data definition. cpp turns this into
28 * typedef struct FormData_pg_statistic_ext_data
31 CATALOG(pg_statistic_ext_data,3429,StatisticExtDataRelationId)
35 bool stxdinherit;
/* true if inheritance children are included */
37#ifdef CATALOG_VARLEN /* variable-length fields start here */
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 */
49 * Form_pg_statistic_ext_data corresponds to a pointer to a tuple with
50 * the format of pg_statistic_ext_data relation.
57 DECLARE_UNIQUE_INDEX_PKEY(pg_statistic_ext_data_stxoid_inh_index, 3433, StatisticExtDataStxoidInhIndexId, pg_statistic_ext_data, btree(stxoid oid_ops, stxdinherit bool_ops));
59 MAKE_SYSCACHE(STATEXTDATASTXOID, pg_statistic_ext_data_stxoid_inh_index, 4);
61#endif /* PG_STATISTIC_EXT_DATA_H */
#define BKI_LOOKUP(catalog)
DECLARE_UNIQUE_INDEX_PKEY(pg_statistic_ext_data_stxoid_inh_index, 3433, StatisticExtDataStxoidInhIndexId, pg_statistic_ext_data, btree(stxoid oid_ops, stxdinherit bool_ops))
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)
MAKE_SYSCACHE(STATEXTDATASTXOID, pg_statistic_ext_data_stxoid_inh_index, 4)
FormData_pg_statistic_ext_data