sql: support ADD CONSTRAINT ... NOT VALID #33551
Labels
A-schema-changes
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Currently, when a constraint is added, the constraint is not validated for existing rows (see #33550). Postgres's behavior (https://www.postgresql.org/docs/11/sql-altertable.html) is to validate newly added constraints for existing rows by default, unless
NOT VALID
is specified.We should first address #33550 to bring
ADD CONSTRAINT
in line with the default behavior of Postgres, and then addNOT VALID
as an option.The text was updated successfully, but these errors were encountered: