PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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.

Typedefs

typedef FormData_pg_shdependForm_pg_shdepend
 

Functions

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

Variables

 FormData_pg_shdepend
 

Typedef Documentation

◆ Form_pg_shdepend

Definition at line 73 of file pg_shdepend.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_shdepend  ,
1214  ,
SharedDependRelationId   
)

Definition at line 38 of file pg_shdepend.h.

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

References BKI_LOOKUP, and BKI_LOOKUP_OPT.

◆ DECLARE_INDEX() [1/2]

DECLARE_INDEX ( pg_shdepend_depender_index  ,
1232  ,
SharedDependDependerIndexId  ,
pg_shdepend  ,
btree(dbid oid_ops, classid oid_ops, objid oid_ops, objsubid int4_ops)   
)

◆ DECLARE_INDEX() [2/2]

DECLARE_INDEX ( pg_shdepend_reference_index  ,
1233  ,
SharedDependReferenceIndexId  ,
pg_shdepend  ,
btree(refclassid oid_ops, refobjid oid_ops)   
)

Variable Documentation

◆ FormData_pg_shdepend

FormData_pg_shdepend

Definition at line 66 of file pg_shdepend.h.

Referenced by copyTemplateDependencies().