Re: Remove support in ri_triggers.c for zero-column foreign keys?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Andres Freund" <andres(at)2ndquadrant(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Remove support in ri_triggers.c for zero-column foreign keys?
Date: 2012-06-20 21:28:11
Message-ID: 4FE1FA1B0200002500048838@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andres Freund <andres(at)2ndquadrant(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Cédric Villemain 2012-06-20 21:29:16 Re: pg_prewarm
Previous Message Andres Freund 2012-06-20 21:24:14 Re: Remove support in ri_triggers.c for zero-column foreign keys?