Skip to main content

Module dependencies

Module dependencies 

Source
Expand description

Catalog dependencies as PostgreSQL records them in pg_depend and pg_shdepend, and the deletion search and reports that DROP makes from them.

Structs§

CascadeNotice
The NOTICE a cascading DROP reports: one line for a single object, or a count with the list in the detail.
DeletionFlags
DEPFLAG_*: how the search reached an object.
DeletionTarget
One object to delete, with how it was reached and the object whose deletion requires it.
DeletionTargets
The objects to delete in deletion order: every dependent before the object it depends on.
Dependency
DependencyGraph
ObjectAddress
The catalog holding an object’s row, the row’s OID, and for a column of a relation its column number; zero names the whole object.
SharedDependency
A dependency of an object on a role or tablespace, which every database shares.

Enums§

DependencyKind
pg_depend.deptype.
SharedDependencyKind
pg_shdepend.deptype.

Constants§

ATTRIBUTE_DEFAULT_CLASS
pg_attrdef: column defaults and generation expressions.
CONSTRAINT_CLASS
pg_constraint.
DATABASE_CLASS
pg_database, which every database shares.
FOREIGN_SERVER_CLASS
pg_foreign_server.
FOREIGN_WRAPPER_CLASS
pg_foreign_data_wrapper.
LANGUAGE_CLASS
pg_language.
NAMESPACE_CLASS
pg_namespace.
PROCEDURE_CLASS
pg_proc.
RELATION_CLASS
pg_class: relations, and with a column number, their columns.
REWRITE_CLASS
pg_rewrite.
ROLE_CLASS
pg_authid: roles, which every database shares.
ROLE_MEMBERSHIP_CLASS
pg_auth_members: role memberships, which every database shares.
TRIGGER_CLASS
pg_trigger.
TYPE_CLASS
pg_type.

Functions§

shared_dependency_detail
checkSharedDependencies: the detail listing what depends on referenced, by ascending OID, catalog, column and dependency type; None when nothing that can be described depends on it. Every row must belong to the current database or be shared.

Type Aliases§

Describe
getObjectDescription: an object’s description, None for an object that does not exist.