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

Go to the source code of this file.

Macros

#define DependDependerIndexId   2673
 
#define DependReferenceIndexId   2674
 

Typedefs

typedef FormData_pg_dependForm_pg_depend
 

Functions

 CATALOG (pg_depend, 2608, DependRelationId)
 
 DECLARE_INDEX (pg_depend_depender_index, 2673, on pg_depend using btree(classid oid_ops, objid oid_ops, objsubid int4_ops))
 
 DECLARE_INDEX (pg_depend_reference_index, 2674, on pg_depend using btree(refclassid oid_ops, refobjid oid_ops, refobjsubid int4_ops))
 

Variables

 FormData_pg_depend
 

Macro Definition Documentation

◆ DependDependerIndexId

◆ DependReferenceIndexId

Typedef Documentation

◆ Form_pg_depend

Definition at line 73 of file pg_depend.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_depend  ,
2608  ,
DependRelationId   
)

Definition at line 41 of file pg_depend.h.

References BKI_LOOKUP, and BKI_LOOKUP_OPT.

42 {
43  /*
44  * Identification of the dependent (referencing) object.
45  *
46  * These fields are all zeroes for a DEPENDENCY_PIN entry.
47  */
48  Oid classid BKI_LOOKUP_OPT(pg_class); /* OID of table containing
49  * object */
50  Oid objid; /* OID of object itself */
51  int32 objsubid; /* column number, or 0 if not used */
52 
53  /*
54  * Identification of the independent (referenced) object.
55  */
56  Oid refclassid BKI_LOOKUP(pg_class); /* OID of table containing
57  * object */
58  Oid refobjid; /* OID of object itself */
59  int32 refobjsubid; /* column number, or 0 if not used */
60 
61  /*
62  * Precise semantics of the relationship are specified by the deptype
63  * field. See DependencyType in catalog/dependency.h.
64  */
65  char deptype; /* see codes in dependency.h */
unsigned int Oid
Definition: postgres_ext.h:31
signed int int32
Definition: c.h:429
#define BKI_LOOKUP_OPT(catalog)
Definition: genbki.h:47
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
FormData_pg_depend
Definition: pg_depend.h:66

◆ DECLARE_INDEX() [1/2]

DECLARE_INDEX ( pg_depend_depender_index  ,
2673  ,
on pg_depend using   btreeclassid oid_ops, objid oid_ops, objsubid int4_ops 
)

◆ DECLARE_INDEX() [2/2]

DECLARE_INDEX ( pg_depend_reference_index  ,
2674  ,
on pg_depend using   btreerefclassid oid_ops, refobjid oid_ops, refobjsubid int4_ops 
)

Variable Documentation

◆ FormData_pg_depend

FormData_pg_depend

Definition at line 66 of file pg_depend.h.

Referenced by recordMultipleDependencies().