NOT ENFORCED constraints
ENFORCED / NOT ENFORCED and NOT VALID states for CHECK and foreign key constraints.
Versions
- PostgreSQL 20 · worked-on · improved · moderate
- PostgreSQL 19 · shipped · improved · moderate · 2 commits · +483 / -71 lines
- PostgreSQL 18 · shipped · new · moderate · 15 commits · +2.7k / -1k lines
Threads
- BUG #19847: pg_dump loses ENFORCED on inherited CHECK under NOT ENFORCED parent
- [PATCH] validate inherited check constraints when enabling enforcement
- [PG19] Three bugs with a CHECK constraint that only the child enforces
- Interaction between NOT ENFORCED and NOT VALID
- NOT NULL NOT ENFORCED
- document not enforced foreign key no need verify existing rows
- Introducing find_all_inheritors_ordered()
- Fix bug of CHECK constraint enforceability recursion
- BUG #19482: Recursive QueueFKConstraintValidation() lacks stack depth check
- doc: Clarify ALTER CONSTRAINT enforceability wording
- [PATCH] Fix unexpected loss of DEFERRABLE property after toggling NOT ENFORCED / ENFORCED
- alter check constraint enforceability
- Proposal: Add a UNIQUE NOT ENFORCED constraint
- TAB completion for ALTER TABLE ... ALTER CONSTRAINT ... ENFORCED
- Potential bug: Enforcing/not enforcing a CHECK constraint fails on an empty table
- Trivial patch to fix a typo
- ALTER TABLE ALTER CONSTRAINT misleading error message
- Foreign key validation failure in 18beta1
- tab complete for ALTER TABLE ALTER CONSTRAINT
- Detach partition with constraint test
- NOT ENFORCED constraint feature
- wrong error message related to unsupported feature
- Allow NOT VALID foreign key constraints on partitioned tables.
- CREATE TABLE NOT VALID for check and foreign key