select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / SYSTEM CATALOGS

The catalog pg_depend records the dependency relationships between database objects.

Kind
System catalogs
Columns in this snapshot
7
Definition source
English manual

Columns 7

ColumnTypeDescription / reference
classidoidThe OID of the system catalog the dependent object is in
pg_class.oid
objidoidThe OID of the specific dependent object
objsubidint4For a table column, this is the column number (the objid and classid refer to the table itself). For all other object types, this column is zero.
refclassidoidThe OID of the system catalog the referenced object is in
pg_class.oid
refobjidoidThe OID of the specific referenced object
refobjsubidint4For a table column, this is the column number (the refobjid and refclassid refer to the table itself). For all other object types, this column is zero.
deptypecharA code defining the specific semantics of this dependency relationship; see text
Column history across versions
Version history 2
  1. PG 14 → 15changed
  2. PG 13 → 14changed

Definition snapshot: english-manuals:138a56c0bd1dc1b4f51fba16b61… · English manual source