PostgreSQL Source Code  git master
pg_attrdef.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_attrdef_d.h"
Include dependency graph for pg_attrdef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef FormData_pg_attrdefForm_pg_attrdef
 

Functions

 CATALOG (pg_attrdef, 2604, AttrDefaultRelationId)
 
 DECLARE_TOAST (pg_attrdef, 2830, 2831)
 
 DECLARE_UNIQUE_INDEX (pg_attrdef_adrelid_adnum_index, 2656, AttrDefaultIndexId, on pg_attrdef using btree(adrelid oid_ops, adnum int2_ops))
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_attrdef_oid_index, 2657, AttrDefaultOidIndexId, on pg_attrdef using btree(oid oid_ops))
 
 DECLARE_FOREIGN_KEY ((adrelid, adnum), pg_attribute,(attrelid, attnum))
 

Variables

 FormData_pg_attrdef
 

Typedef Documentation

◆ Form_pg_attrdef

Definition at line 48 of file pg_attrdef.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_attrdef  ,
2604  ,
AttrDefaultRelationId   
)

Definition at line 29 of file pg_attrdef.h.

References BKI_FORCE_NOT_NULL, and BKI_LOOKUP.

30 {
31  Oid oid; /* oid */
32 
33  Oid adrelid BKI_LOOKUP(pg_class); /* OID of table containing
34  * attribute */
35  int16 adnum; /* attnum of attribute */
36 
37 #ifdef CATALOG_VARLEN /* variable-length fields start here */
38  pg_node_tree adbin BKI_FORCE_NOT_NULL; /* nodeToString representation of
39  * default */
40 #endif
signed short int16
Definition: c.h:428
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
FormData_pg_attrdef
Definition: pg_attrdef.h:41

◆ DECLARE_FOREIGN_KEY()

DECLARE_FOREIGN_KEY ( (adrelid, adnum)  ,
pg_attribute  ,
(attrelid, attnum  
)

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_attrdef  ,
2830  ,
2831   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_attrdef_adrelid_adnum_index  ,
2656  ,
AttrDefaultIndexId  ,
on pg_attrdef using   btreeadrelid oid_ops, adnum int2_ops 
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_attrdef_oid_index  ,
2657  ,
AttrDefaultOidIndexId  ,
on pg_attrdef using   btreeoid oid_ops 
)

Variable Documentation

◆ FormData_pg_attrdef

FormData_pg_attrdef

Definition at line 41 of file pg_attrdef.h.