]> granicus.if.org Git - postgresql/commit
Remove incomplete/incorrect support for zero-column foreign keys.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 21 Jun 2012 00:15:02 +0000 (20:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 21 Jun 2012 00:15:02 +0000 (20:15 -0400)
commitdfd9c116cc3ebaf42f895b9b16a9ff69bb21664b
tree14154514910d686a610228c63807559699c7bf14
parent0ce4459a366def5173a59a74ba1b81e8449b8df1
Remove incomplete/incorrect support for zero-column foreign keys.

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.
src/backend/utils/adt/ri_triggers.c