Commit d991a08
committed
fix(db): add the visibility constraint NOT VALID, then validate
check:migrations blocks a plain ADD CONSTRAINT CHECK on an existing
table: it takes an ACCESS EXCLUSIVE lock for a full scan of credential
and rejects concurrent writes for the duration. Split into the
expand/contract form so the lock is brief and validation runs under
SHARE UPDATE EXCLUSIVE, which readers and writers do not block on.1 parent 44f331a commit d991a08
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
0 commit comments