ONLY in queries by RI triggers - Mailing list pgsql-hackers

From Vladimir Borodin
Subject ONLY in queries by RI triggers
Date
Msg-id D7D179A7-A943-4BCD-AC5C-9766184B4ED4@simply.name
Whole thread Raw
Responses Re: ONLY in queries by RI triggers
List pgsql-hackers
Hi all.

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.

Thanks in advance.

--
May the force be with you…

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Buildfarm client version 4.15 released
Next
From: Andres Freund
Date:
Subject: Re: ONLY in queries by RI triggers