• Simon Riggs's avatar
    Extend ALTER TABLE to allow Foreign Keys to be added without initial validation. · 722bf701
    Simon Riggs authored
    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
    722bf701
kwlist.h 20.7 KB