Re: Remove support in ri_triggers.c for zero-column foreign keys? - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Remove support in ri_triggers.c for zero-column foreign keys?
Date
Msg-id 4FE1FA1B0200002500048838@gw.wicourts.gov
Whole thread Raw
In response to Re: Remove support in ri_triggers.c for zero-column foreign keys?  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
Andres Freund <andres@2ndquadrant.com> wrote:
> On Wednesday, June 20, 2012 11:15:44 PM Tom Lane wrote:
>> There is a nontrivial amount of code in ri_triggers.c that is
>> concerned with supporting foreign key constraints having zero
>> columns.  ...
>> 
>> I think we should rip all that code out and instead put one test
>> into ri_FetchConstraintInfo insisting that the number of keys be
>> > 0.
> +1. I really find that a strange concept and I have a hard time
> finding useful use-cases.
+1
-Kevin


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Remove support in ri_triggers.c for zero-column foreign keys?
Next
From: Cédric Villemain
Date:
Subject: Re: pg_prewarm