Re: Fix disabled triggers with deferred constraints

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Elliot Lee <sopwith(at)redhat(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Fix disabled triggers with deferred constraints
Date: 2002-06-14 05:07:49
Message-ID: 200206140507.g5E57om04338@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:
> Elliot Lee <sopwith(at)redhat(dot)com> writes:
> > About as obscure a bug as you can get - without the patch, disabled
> > triggers for deferred constraints get run anyways. The patch is simple and
> > works, but the "right" (and more complicated) fix may involve not adding
> > the trigger to event->dte_item to begin with.
>
> I remember looking at this issue and not doing anything because I
> couldn't decide whether the test for enabled status should occur when
> the trigger is queued or when it is executed --- or, perhaps, both?
> Is there anything in the standard about it?

Was there any agreement on this?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-06-14 05:10:00 Re: libpq++ fixes
Previous Message Bruce Momjian 2002-06-14 05:07:01 Re: HeapTupleHeader accessor macros