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.

Macros

#define StatisticExtOidIndexId   3380
 
#define StatisticExtNameIndexId   3997
 
#define StatisticExtRelidIndexId   3379
 

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 (pg_statistic_ext_oid_index, 3380, on pg_statistic_ext using btree(oid oid_ops))
 
 DECLARE_UNIQUE_INDEX (pg_statistic_ext_name_index, 3997, on pg_statistic_ext using btree(stxname name_ops, stxnamespace oid_ops))
 
 DECLARE_INDEX (pg_statistic_ext_relid_index, 3379, on pg_statistic_ext using btree(stxrelid oid_ops))
 

Variables

 FormData_pg_statistic_ext
 

Macro Definition Documentation

◆ StatisticExtNameIndexId

#define StatisticExtNameIndexId   3997

Definition at line 71 of file pg_statistic_ext.h.

◆ StatisticExtOidIndexId

#define StatisticExtOidIndexId   3380

Definition at line 69 of file pg_statistic_ext.h.

Referenced by CreateStatistics().

◆ StatisticExtRelidIndexId

#define StatisticExtRelidIndexId   3379

Definition at line 73 of file pg_statistic_ext.h.

Referenced by fetch_statentries_for_relation(), and RelationGetStatExtList().

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.

References BKI_DEFAULT, and BKI_FORCE_NOT_NULL.

34 {
35  Oid oid; /* oid */
36 
37  Oid stxrelid; /* relation containing attributes */
38 
39  /* These two fields form the unique key for the entry: */
40  NameData stxname; /* statistics object name */
41  Oid stxnamespace; /* OID of statistics object's namespace */
42 
43  Oid stxowner; /* statistics object's owner */
44  int32 stxstattarget BKI_DEFAULT(-1); /* statistics target */
45 
46  /*
47  * variable-length fields start here, but we allow direct access to
48  * stxkeys
49  */
50  int2vector stxkeys BKI_FORCE_NOT_NULL; /* array of column keys */
51 
52 #ifdef CATALOG_VARLEN
53  char stxkind[1] BKI_FORCE_NOT_NULL; /* statistics kinds requested
54  * to build */
55 #endif
56 
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_DEFAULT(value)
Definition: genbki.h:35
signed int int32
Definition: c.h:417
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
Definition: c.h:663
FormData_pg_statistic_ext
Definition: c.h:637

◆ DECLARE_INDEX()

DECLARE_INDEX ( pg_statistic_ext_relid_index  ,
3379  ,
on pg_statistic_ext using   btreestxrelid oid_ops 
)

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_statistic_ext  ,
3439  ,
3440   
)

◆ DECLARE_UNIQUE_INDEX() [1/2]

DECLARE_UNIQUE_INDEX ( pg_statistic_ext_oid_index  ,
3380  ,
on pg_statistic_ext using   btreeoid oid_ops 
)

◆ DECLARE_UNIQUE_INDEX() [2/2]

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

Variable Documentation

◆ FormData_pg_statistic_ext

FormData_pg_statistic_ext

Definition at line 57 of file pg_statistic_ext.h.