Полезная информация

3.17. pg_relcheck

This system catalog stores CHECK constraints on tables. (Column constraints are not treated specially. Every column constraint is equivalent to some table constraint.) See under CREATE TABLE for more information.

Table 3-17. pg_relcheck Columns

rcrelidoidpg_class.oidThe table this check constraint is on
rcnamename Constraint name
rcbintext An internal representation of the constraint expression
rcsrctext A human-readable representation of the constraint expression

Note: pg_class.relchecks needs to match up with the entries in this table.