check_constraints Columns
columns in the current database that are used by some constraint.
Only those columns are shown that are contained in a table owned by
a currently enabled role. For a check constraint, this view
- identifies the columns that are used in the check expression. For
+ identifies the columns that are used in the check expression. For a
+ not-null constraint, this view identifies the column that the constraint is
+ defined on. For
a foreign key constraint, this view identifies the columns that the
foreign key references. For a unique or primary key constraint,
this view identifies the constrained columns.
constraint_type character_data
- Type of the constraint: CHECK,
+ Type of the constraint: CHECK (includes not-null constraints),
FOREIGN KEY, PRIMARY KEY,
or UNIQUE