Updated on 2023-10-23 GMT+08:00

MY_CONSTRAINTS

MY_CONSTRAINTS displays table constraint information accessible to the current user. This view exists in the PG_CATALOG and SYS schemas.

Table 1 MY_CONSTRAINTS columns

Name

Type

Description

owner

character varyiny(64)

Constraint creator

constraint_name

vcharacter 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 the constraint-related index (only for the unique constraint and primary key constraint)