PostgreSQL Source Code  git master
pg_shdepend.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_shdepend_d.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 SharedDependDependerIndexId   1232
 
#define SharedDependReferenceIndexId   1233
 

Typedefs

typedef FormData_pg_shdependForm_pg_shdepend
 

Functions

 CATALOG (pg_shdepend, 1214, SharedDependRelationId) BKI_SHARED_RELATION
 
 DECLARE_INDEX (pg_shdepend_depender_index, 1232, on pg_shdepend using btree(dbid oid_ops, classid oid_ops, objid oid_ops, objsubid int4_ops))
 
 DECLARE_INDEX (pg_shdepend_reference_index, 1233, on pg_shdepend using btree(refclassid oid_ops, refobjid oid_ops))
 

Variables

 FormData_pg_shdepend
 

Macro Definition Documentation

◆ SharedDependDependerIndexId

#define SharedDependDependerIndexId   1232

◆ SharedDependReferenceIndexId

#define SharedDependReferenceIndexId   1233

Typedef Documentation

◆ Form_pg_shdepend

Definition at line 70 of file pg_shdepend.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_shdepend  ,
1214  ,
SharedDependRelationId   
)

Definition at line 37 of file pg_shdepend.h.

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

◆ DECLARE_INDEX() [1/2]

DECLARE_INDEX ( pg_shdepend_depender_index  ,
1232  ,
on pg_shdepend using   btreedbid oid_ops, classid oid_ops, objid oid_ops, objsubid int4_ops 
)

◆ DECLARE_INDEX() [2/2]

DECLARE_INDEX ( pg_shdepend_reference_index  ,
1233  ,
on pg_shdepend using   btreerefclassid oid_ops, refobjid oid_ops 
)

Variable Documentation

◆ FormData_pg_shdepend

FormData_pg_shdepend

Definition at line 63 of file pg_shdepend.h.

Referenced by copyTemplateDependencies().