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

Go to the source code of this file.

Macros

#define SharedDependRelationId   1214
 
#define Natts_pg_shdepend   7
 
#define Anum_pg_shdepend_dbid   1
 
#define Anum_pg_shdepend_classid   2
 
#define Anum_pg_shdepend_objid   3
 
#define Anum_pg_shdepend_objsubid   4
 
#define Anum_pg_shdepend_refclassid   5
 
#define Anum_pg_shdepend_refobjid   6
 
#define Anum_pg_shdepend_deptype   7
 

Typedefs

typedef FormData_pg_shdependForm_pg_shdepend
 

Functions

 CATALOG (pg_shdepend, 1214) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
 

Variables

 FormData_pg_shdepend
 

Macro Definition Documentation

◆ Anum_pg_shdepend_classid

#define Anum_pg_shdepend_classid   2

Definition at line 72 of file pg_shdepend.h.

Referenced by shdepAddDependency(), shdepChangeDep(), and shdepDropDependency().

◆ Anum_pg_shdepend_dbid

#define Anum_pg_shdepend_dbid   1

◆ Anum_pg_shdepend_deptype

#define Anum_pg_shdepend_deptype   7

Definition at line 77 of file pg_shdepend.h.

Referenced by shdepAddDependency(), and shdepChangeDep().

◆ Anum_pg_shdepend_objid

#define Anum_pg_shdepend_objid   3

Definition at line 73 of file pg_shdepend.h.

Referenced by shdepAddDependency(), shdepChangeDep(), and shdepDropDependency().

◆ Anum_pg_shdepend_objsubid

#define Anum_pg_shdepend_objsubid   4

Definition at line 74 of file pg_shdepend.h.

Referenced by shdepAddDependency(), shdepChangeDep(), and shdepDropDependency().

◆ Anum_pg_shdepend_refclassid

#define Anum_pg_shdepend_refclassid   5

◆ Anum_pg_shdepend_refobjid

#define Anum_pg_shdepend_refobjid   6

◆ Natts_pg_shdepend

#define Natts_pg_shdepend   7

Definition at line 70 of file pg_shdepend.h.

Referenced by copyTemplateDependencies(), shdepAddDependency(), and shdepChangeDep().

◆ SharedDependRelationId

Typedef Documentation

◆ Form_pg_shdepend

Function Documentation

◆ CATALOG()

CATALOG ( pg_shdepend  ,
1214   
)

Definition at line 31 of file pg_shdepend.h.

32 {
33  /*
34  * Identification of the dependent (referencing) object.
35  *
36  * These fields are all zeroes for a DEPENDENCY_PIN entry. Also, dbid can
37  * be zero to denote a shared object.
38  */
39  Oid dbid; /* OID of database containing object */
40  Oid classid; /* OID of table containing object */
41  Oid objid; /* OID of object itself */
42  int32 objsubid; /* column number, or 0 if not used */
43 
44  /*
45  * Identification of the independent (referenced) object. This is always
46  * a shared object, so we need no database ID field. We don't bother with
47  * a sub-object ID either.
48  */
49  Oid refclassid; /* OID of table containing object */
50  Oid refobjid; /* OID of object itself */
51 
52  /*
53  * Precise semantics of the relationship are specified by the deptype
54  * field. See SharedDependencyType in catalog/dependency.h.
55  */
56  char deptype; /* see codes in dependency.h */
unsigned int Oid
Definition: postgres_ext.h:31
signed int int32
Definition: c.h:284
FormData_pg_shdepend
Definition: pg_shdepend.h:57

Variable Documentation

◆ FormData_pg_shdepend

FormData_pg_shdepend

Definition at line 57 of file pg_shdepend.h.