Re: ONLY in queries by RI triggers

From: Andres Freund <andres(at)anarazel(dot)de>
To: Vladimir Borodin <root(at)simply(dot)name>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ONLY in queries by RI triggers
Date: 2015-04-17 14:41:24
Message-ID: 20150417144124.GC9857@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2015-04-17 17:35:16 +0300, Vladimir Borodin wrote:
> A long time ago in 04b31609b63ce77fb9273193f07cf21b2a7176af ONLY
> keyword was added to all queries in
> src/backend/utils/adt/ri_triggers.c. Since that time foreign keys do
> not work with inheritance trees and it is mentioned in the
> documentation for all versions since at least 7.3.
>
> I wonder what are the pitfalls of removing ONLY keyword from those
> queries? I have made such change, it passes all tests and foreign keys
> for partitioned tables do work, but I suppose that there are lots of
> places where it could break something.

Unique keys don't work across partitions and they fk triggers rely on
one side being unique...

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2015-04-17 14:57:12 Re: Moving on to close the current CF 2015-02
Previous Message Vladimir Borodin 2015-04-17 14:35:16 ONLY in queries by RI triggers