• Tom Lane's avatar
    Rework parsing of ConstraintAttributeSpec to improve NOT VALID handling. · e1ccaff6
    Tom Lane authored
    The initial commit of the ALTER TABLE ADD FOREIGN KEY NOT VALID feature
    failed to support labeling such constraints as deferrable.  The best fix
    for this seems to be to fold NOT VALID into ConstraintAttributeSpec.
    That's a bit more general than the documented syntax, but it allows
    better-targeted syntax error messages.
    
    In addition, do some mostly-but-not-entirely-cosmetic code review for
    the whole NOT VALID patch.
    e1ccaff6
tablecmds.c 278 KB