You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds ability to skip the validation of PostgreSQL constraints on create (#271)
Validation of constraints in PostgreSQL can cause large tables to stay
locked for a long time (preventing writes, because it has to check all
rows in order to consider the constraint as valid.
PostgreSQL has a way to get around this by first creating constraints as
not valid. And then running a query to validate the constraint. The
validation query does not lock the table, i.e. it can be run while
allowing writes in parallel.
This commit implements the ability to skip validation of constraints. It
does not implement the validation query.
This was inspired by #244.
https://www.postgresql.org/docs/current/sql-altertable.html
0 commit comments