1/*-------------------------------------------------------------------------
4 * definition of the "dependency" system catalog (pg_depend)
6 * pg_depend has no preloaded contents, so there is no pg_depend.dat
7 * file; dependencies for system-defined objects are loaded into it
8 * on-the-fly during initdb. Most built-in objects are pinned anyway,
9 * and hence need no explicit entries in pg_depend.
11 * NOTE: we do not represent all possible dependency pairs in pg_depend;
12 * for example, there's not much value in creating an explicit dependency
13 * from an attribute to its relation. Usually we make a dependency for
14 * cases where the relationship is conditional rather than essential
15 * (for example, not all triggers are dependent on constraints, but all
16 * attributes are dependent on relations) or where the dependency is not
17 * convenient to find from the contents of other catalogs.
20 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
21 * Portions Copyright (c) 1994, Regents of the University of California
23 * src/include/catalog/pg_depend.h
26 * The Catalog.pm module reads this file and derives schema
29 *-------------------------------------------------------------------------
35#include "catalog/pg_depend_d.h" /* IWYU pragma: export */
38 * pg_depend definition. cpp turns this into
39 * typedef struct FormData_pg_depend
45 * Identification of the dependent (referencing) object.
49 Oid objid;
/* OID of object itself */
50 int32 objsubid;
/* column number, or 0 if not used */
53 * Identification of the independent (referenced) object.
55 Oid refclassid
BKI_LOOKUP(pg_class);
/* OID of table containing
57 Oid refobjid;
/* OID of object itself */
58 int32 refobjsubid;
/* column number, or 0 if not used */
61 * Precise semantics of the relationship are specified by the deptype
62 * field. See DependencyType in catalog/dependency.h.
64 char deptype;
/* see codes in dependency.h */
68 * Form_pg_depend corresponds to a pointer to a row with
69 * the format of pg_depend relation.
74 DECLARE_INDEX(pg_depend_depender_index, 2673, DependDependerIndexId, pg_depend, btree(classid oid_ops, objid oid_ops, objsubid int4_ops));
75 DECLARE_INDEX(pg_depend_reference_index, 2674, DependReferenceIndexId, pg_depend, btree(refclassid oid_ops, refobjid oid_ops, refobjsubid int4_ops));
77#endif /* PG_DEPEND_H */
#define BKI_LOOKUP(catalog)
DECLARE_INDEX(pg_depend_depender_index, 2673, DependDependerIndexId, pg_depend, btree(classid oid_ops, objid oid_ops, objsubid int4_ops))
CATALOG(pg_depend, 2608, DependRelationId)
FormData_pg_depend * Form_pg_depend