• Tom Lane's avatar
    Remove incomplete/incorrect support for zero-column foreign keys. · dfd9c116
    Tom Lane authored
    The original coding in ri_triggers.c had partial support for the concept of
    zero-column foreign key constraints.  But this is not defined in the SQL
    standard, nor was it ever allowed by any other part of Postgres, nor was it
    very fully implemented even here (eg there was no support for preventing
    PK-table deletions that would violate the constraint).  Doesn't seem very
    useful to carry 100-plus lines of code for a corner case that no one is
    interested in making work.  Instead, just add a check that the column list
    read from pg_constraint is non-empty.
    dfd9c116
ri_triggers.c 99.6 KB