↑↓ 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.

Reading PG 18current·documented in 24 of 24 versions, 7.4 to 20

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

Columns 7

As listed in the PostgreSQL 18 manual.

ColumnTypeDescription / reference
classidoidNOT NULLThe OID of the system catalog the dependent object is in
pg_class.oid
objidoidNOT NULLThe OID of the specific dependent object
objsubidint4NOT NULLFor 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.
refclassidoidNOT NULLThe OID of the system catalog the referenced object is in
pg_class.oid
refobjidoidNOT NULLThe OID of the specific referenced object
refobjsubidint4NOT NULLFor 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.
deptypecharNOT NULLA code defining the specific semantics of this dependency relationship; see text
Column history across versions
Version history 5
  1. 14 → 15 reworded
  2. 13 → 14 reworded
  3. 8.4 → 9.0 reworded
  4. 8.1 → 8.2 reworded
  5. 8.0 → 8.1 reworded

Definition snapshot: english-manuals:71953b694f236deae10e284631f… · English manual source