Overview

The pg_constraint stores information about table constraints. It mimics the PostgreSQL system catalog pg_constraint.

Please note that Oxla doesn’t support the custom types.

Columns

This table is designed for compatibility with tools that require PostgreSQL system tables, so it mostly has dummy data. Please note that not all columns in pg_constraint are applicable to every type of relation.

The following columns are available for querying in pg_constraint:

ColumnTypeDescription
oidintThis column represents the row identifier
connamestringThis column represents the constraint name
connamespaceintThis column represents the namespace that contains this constraint
contypestringunused
condeferrableboolunused
condeferredboolunused
convalidatedboolunused
conrelidintunused
contypidintunused
conindidintunused
conparentidintunused
confrelidintunused
confupdtypestringunused
confdeltypestringunused
confmatchtypestringunused
conislocalboolunused
coninhcountintunused
connoinheritboolunused
conkeystringunused
confkeystringunused
conpfeqopstringunused
conppeqopstringunused
conffeqopstringunused
confdelsetcolsstringunused
conexclopstringunused
conbinstringunused