Re: Combination of Triggers and self-FKs produces inconsistent data

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Combination of Triggers and self-FKs produces inconsistent data
Date: 2009-01-29 00:04:15
Message-ID: 4980F27F.108@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane wrote:
> Josh Berkus <josh(at)agliodbs(dot)com> writes:
>> Summary: self-referential FKs are not enforced properly in the
>> presence of BEFORE triggers
>
> This isn't a bug. If you create triggers that prevent the RI actions
> from being taken, it's your own problem.

Huh? Since when was it OK by us to have data which violates a declared
FK under *any* circumstances? Where in our docs does it say that
Foreign Keys are not enforced if the table has triggers on it?

--Josh

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-01-29 00:18:19 Re: Combination of Triggers and self-FKs produces inconsistent data
Previous Message Tom Lane 2009-01-29 00:00:22 Re: Combination of Triggers and self-FKs produces inconsistent data