Updated on 2024-06-03 GMT+08:00

DB_CONSTRAINTS

DB_CONSTRAINTS displays information about constraints accessible to the current user. This view exists in the PG_CATALOG and SYS schemas.

Table 1 DB_CONSTRAINTS columns

Name

Type

Description

constraint_name

character varying(64)

Constraint name.

constraint_type

text

Constraint type.
  • c: check constraint
  • f: foreign key constraint
  • p: primary key constraint
  • u: unique constraint

table_name

character varying(64)

Name of a constraint-related table.

index_owner

character varying(64)

Owner of a constraint-related index (only for the unique constraint and primary key constraint).

index_name

character varying(64)

Name of a constraint-related index (only for the unique constraint and primary key constraint).

owner

character varying(64)

Constraint creator.