Extend ALTER TABLE to allow Foreign Keys to be added without initial validation.

Simon Riggs <simon@2ndQuadrant.com>

Commit: 722bf7017bbe796decc79c1fde03e7a83dae9ada
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2011-02-08T12:23:20Z
Releases: 9.1.0
Extend ALTER TABLE to allow Foreign Keys to be added without initial validation.
FK constraints that are marked NOT VALID may later be VALIDATED, which uses an
ShareUpdateExclusiveLock on constraint table and RowShareLock on referenced
table. Significantly reduces lock strength and duration when adding FKs.
New state visible from psql.

Simon Riggs, with reviews from Marko Tiikkaja and Robert Haas

Files