PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_statistic_ext.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_statistic_ext_d.h"
Include dependency graph for pg_statistic_ext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BEGIN_CATALOG_STRUCT CATALOG (pg_statistic_ext, 3381, StatisticExtRelationId)
 
 DECLARE_TOAST (pg_statistic_ext, 3439, 3440)
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_statistic_ext_oid_index, 3380, StatisticExtOidIndexId, pg_statistic_ext, btree(oid oid_ops))
 
 DECLARE_UNIQUE_INDEX (pg_statistic_ext_name_index, 3997, StatisticExtNameIndexId, pg_statistic_ext, btree(stxname name_ops, stxnamespace oid_ops))
 
 DECLARE_INDEX (pg_statistic_ext_relid_index, 3379, StatisticExtRelidIndexId, pg_statistic_ext, btree(stxrelid oid_ops))
 
 MAKE_SYSCACHE (STATEXTOID, pg_statistic_ext_oid_index, 4)
 
 MAKE_SYSCACHE (STATEXTNAMENSP, pg_statistic_ext_name_index, 4)
 
 DECLARE_ARRAY_FOREIGN_KEY ((stxrelid, stxkeys), pg_attribute,(attrelid, attnum))
 

Variables

END_CATALOG_STRUCT typedef FormData_pg_statistic_extForm_pg_statistic_ext
 
 FormData_pg_statistic_ext
 

Function Documentation

◆ CATALOG()

Definition at line 35 of file pg_statistic_ext.h.

36{
37 Oid oid; /* oid */
38
39 Oid stxrelid BKI_LOOKUP(pg_class); /* relation containing
40 * attributes */
41
42 /* These two fields form the unique key for the entry: */
43 NameData stxname; /* statistics object name */
44 Oid stxnamespace BKI_LOOKUP(pg_namespace); /* OID of statistics
45 * object's namespace */
46
47 Oid stxowner BKI_LOOKUP(pg_authid); /* statistics object's owner */
48
49 /*
50 * variable-length/nullable fields start here, but we allow direct access
51 * to stxkeys
52 */
53 int2vector stxkeys BKI_FORCE_NOT_NULL; /* array of column keys */
54
55#ifdef CATALOG_VARLEN
56 int16 stxstattarget BKI_DEFAULT(_null_) BKI_FORCE_NULL; /* statistics target */
57 char stxkind[1] BKI_FORCE_NOT_NULL; /* statistics kinds requested
58 * to build */
59 pg_node_tree stxexprs; /* A list of expression trees for stats
60 * attributes that are not simple column
61 * references. */
62#endif
63
int16_t int16
Definition c.h:574
#define BKI_LOOKUP(catalog)
Definition genbki.h:65
#define BKI_DEFAULT(value)
Definition genbki.h:54
#define BKI_FORCE_NOT_NULL
Definition genbki.h:52
#define BKI_FORCE_NULL
Definition genbki.h:51
FormData_pg_statistic_ext
unsigned int Oid
static int fb(int x)
Definition c.h:793

References BKI_DEFAULT, BKI_FORCE_NOT_NULL, BKI_FORCE_NULL, BKI_LOOKUP, and fb().

◆ DECLARE_ARRAY_FOREIGN_KEY()

DECLARE_ARRAY_FOREIGN_KEY ( (stxrelid, stxkeys ,
pg_attribute  ,
(attrelid, attnum  
)

◆ DECLARE_INDEX()

DECLARE_INDEX ( pg_statistic_ext_relid_index  ,
3379  ,
StatisticExtRelidIndexId  ,
pg_statistic_ext  ,
btree(stxrelid oid_ops  
)

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_statistic_ext  ,
3439  ,
3440   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_statistic_ext_name_index  ,
3997  ,
StatisticExtNameIndexId  ,
pg_statistic_ext  ,
btree(stxname name_ops, stxnamespace oid_ops  
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_statistic_ext_oid_index  ,
3380  ,
StatisticExtOidIndexId  ,
pg_statistic_ext  ,
btree(oid oid_ops  
)

◆ MAKE_SYSCACHE() [1/2]

MAKE_SYSCACHE ( STATEXTNAMENSP  ,
pg_statistic_ext_name_index  ,
 
)

◆ MAKE_SYSCACHE() [2/2]

MAKE_SYSCACHE ( STATEXTOID  ,
pg_statistic_ext_oid_index  ,
 
)

Variable Documentation

◆ Form_pg_statistic_ext

◆ FormData_pg_statistic_ext

FormData_pg_statistic_ext

Definition at line 64 of file pg_statistic_ext.h.