Re: FK's to refer to rows in inheritance child

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Yeb Havinga <yebhavinga(at)gmail(dot)com>
Cc: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>, "w(dot)p(dot)dijkstra(at)mgrid(dot)net" <w(dot)p(dot)dijkstra(at)mgrid(dot)net>
Subject: Re: FK's to refer to rows in inheritance child
Date: 2010-12-01 14:27:21
Message-ID: 15042.1291213641@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Yeb Havinga <yebhavinga(at)gmail(dot)com> writes:
> FK's cannot refer to rows in inheritance childs. With some changes in
> LockRows, together with removing the ONLY keyword in ri_trigger.c, it
> was possible to refer to the rows in child relations. (WIP patch attached)

> Though it passes simple tests, it is far from complete.

Indeed. This isn't even worth the time to review, unless you have a
proposal for fixing the unique-index-across-multiple-tables problem.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-12-01 14:27:54 Re: GiST insert algorithm rewrite
Previous Message Andres Freund 2010-12-01 14:24:07 Re: profiling connection overhead