• Alvaro Herrera's avatar
    connoinherit may be true only for CHECK constraints · f5bcd398
    Alvaro Herrera authored
    The code was setting it true for other constraints, which is
    bogus.  Doing so caused bogus catalog entries for such constraints, and
    in particular caused an error to be raised when trying to drop a
    constraint of types other than CHECK from a table that has children,
    such as reported in bug #6712.
    
    In 9.2, additionally ignore connoinherit=true for other constraint
    types, to avoid having to force initdb; existing databases might already
    contain bogus catalog entries.
    
    Includes a catversion bump (in HEAD only).
    
    Bug report from Miroslav Šulc
    Analysis from Amit Kapila and Noah Misch; Amit also contributed the patch.
    f5bcd398
inherit.out 45.8 KB