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_shdepend records the dependency relationships between database objects and shared objects, such as roles.

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

Columns 7

ColumnTypeDescription / reference
dbidoidThe OID of the database the dependent object is in, or zero for a shared object
pg_database.oid
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 (must be a shared catalog)
pg_class.oid
refobjidoidThe OID of the specific referenced object
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:b0291cc2e487776de84c6766696… · English manual source