Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
pg_statistic_ext_data.h61 linesDownload Raw Back to catalog
1/*-------------------------------------------------------------------------2 *3 * pg_statistic_ext_data.h4 *	  definition of the "extended statistics data" system catalog5 *	  (pg_statistic_ext_data)6 *7 * This catalog stores the statistical data for extended statistics objects.8 *9 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group10 * Portions Copyright (c) 1994, Regents of the University of California11 *12 * src/include/catalog/pg_statistic_ext_data.h13 *14 * NOTES15 *	  The Catalog.pm module reads this file and derives schema16 *	  information.17 *18 *-------------------------------------------------------------------------19 */20#ifndef PG_STATISTIC_EXT_DATA_H21#define PG_STATISTIC_EXT_DATA_H22 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 into28 *		typedef struct FormData_pg_statistic_ext_data29 * ----------------30 */31CATALOG(pg_statistic_ext_data,3429,StatisticExtDataRelationId)32{33	Oid			stxoid BKI_LOOKUP(pg_statistic_ext);	/* statistics object34														 * 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#endif45 46} FormData_pg_statistic_ext_data;47 48/* ----------------49 *		Form_pg_statistic_ext_data corresponds to a pointer to a tuple with50 *		the format of pg_statistic_ext_data relation.51 * ----------------52 */53typedef FormData_pg_statistic_ext_data *Form_pg_statistic_ext_data;54 55DECLARE_TOAST(pg_statistic_ext_data, 3430, 3431);56 57DECLARE_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 */61 
codekingpro/portable-devtools · Team Ai