|
|
|
|
|
by aeyes
496 days ago
|
|
You can create Foreign Keys as NOT VALID and then VALIDATE the constraint later. This only takes a RowShareLock. Dropping the constraints takes an AccessExclusiveLock for a very short time in both tables so yes, that would interrupt traffic but the online migration tools also do this to switch the tables so I give it a pass. |
|
I am asking out of curiosity, as I have used pt online schema change extensively before, but am right now working mostly with postgres