Re: Optimising Foreign Key checks - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Optimising Foreign Key checks
Date
Msg-id CA+U5nMJSnKghxg_pt6e3Txn0a+3nc9j0wt0XQPoHvmiUYUSFuw@mail.gmail.com
Whole thread Raw
In response to Re: Optimising Foreign Key checks  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On 9 June 2013 14:59, Greg Stark <stark@mit.edu> wrote:
> On Sun, Jun 9, 2013 at 10:51 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
>> AFAICS there are weird cases where changing the way FKs execute will
>> change the way complex trigger applications will execute. I don't see
>> a way to avoid that other than "do nothing". Currently, we execute the
>> checks following the normal order of execution rules for triggers.
>> Every idea we've had so far changes that in some way; variously in
>> major or minor ways, but changed nonetheless.
>
> The obvious case to handle would be if someone has a trigger to
> automatically create any missing references.

Exactly my thoughts.

--Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: small patch to crypt.c
Next
From: Andrew Dunstan
Date:
Subject: postgres_fdw regression tests order dependency