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

Reading PG 18current·documented in 22 of 24 versions, 8.1 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
dbidoidNOT NULLThe OID of the database the dependent object is in, or zero for a shared object
pg_database.oid
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 (must be a shared catalog)
pg_class.oid
refobjidoidNOT NULLThe OID of the specific referenced object
deptypecharNOT NULLA code defining the specific semantics of this dependency relationship; see text
Column history across versions
Version history 6
  1. 14 → 15 reworded
  2. 13 → 14 reworded
  3. 8.4 → 9.0 reworded
  4. 8.3 → 8.4 changed
  5. 8.1 → 8.2 reworded
  6. 8.0 → 8.1 added

Definition snapshot: english-manuals:09b3608739be7a9c563cb205618… · English manual source