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

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Combination of Triggers and self-FKs produces inconsistent data
Date: 2009-01-29 11:24:35
Message-ID: 87ljsuqrrg.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> It doesn't say that, because it isn't true. What is true is that if you
> make a trigger that prevents updates from happening, it breaks RI
> updates as well as directly-user-initiated updates.

Can we detect that this happened and throw an error? I suspect not, though,
since we have no way to actually determine whether the user trigger didn't do
something else equivalent.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Get trained by Bruce Momjian - ask me about EnterpriseDB's PostgreSQL training!

In response to

Browse pgsql-bugs by date

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