51.13. pg_constraint

    User-defined constraint triggers (created with CREATE CONSTRAINT TRIGGER) also give rise to an entry in this table.

    Table 51.13. pg_constraint Columns

    consrc is not updated when referenced objects change; for example, it won’t track renaming of columns. Rather than relying on this field, it’s best to use to extract the definition of a check constraint.

    Note