PostgreSQL Source Code  git master
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.

Typedefs

typedef FormData_pg_statistic_extForm_pg_statistic_ext
 

Functions

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

Variables

 FormData_pg_statistic_ext
 

Typedef Documentation

◆ Form_pg_statistic_ext

Function Documentation

◆ CATALOG()

CATALOG ( pg_statistic_ext  ,
3381  ,
StatisticExtRelationId   
)

Definition at line 33 of file pg_statistic_ext.h.

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

References BKI_DEFAULT, BKI_FORCE_NOT_NULL, and BKI_LOOKUP.

◆ 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  ,
on pg_statistic_ext using   btreestxrelid oid_ops 
)

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_statistic_ext  ,
3439  ,
3440   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_statistic_ext_name_index  ,
3997  ,
StatisticExtNameIndexId  ,
on pg_statistic_ext using   btreestxname name_ops, stxnamespace oid_ops 
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_statistic_ext_oid_index  ,
3380  ,
StatisticExtOidIndexId  ,
on pg_statistic_ext using   btreeoid oid_ops 
)

Variable Documentation

◆ FormData_pg_statistic_ext

FormData_pg_statistic_ext

Definition at line 62 of file pg_statistic_ext.h.