Re: Minor BEFORE DELETE trigger fix

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: Minor BEFORE DELETE trigger fix
Дата
Msg-id Pine.LNX.4.58.0408131403100.14105@linuxworld.com.au
обсуждение исходный текст
Ответ на Re: Minor BEFORE DELETE trigger fix  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
On Thu, 12 Aug 2004, Bruce Momjian wrote:

>
> Did this get resolved?
>
> ---------------------------------------------------------------------------
>
> Gavin Sherry wrote:
> > Attached is a minor patch to make BEFORE DELETE triggers honour tgenabled
> > properly.
> >
> > I know that we cannot, currently, use this feature through a DDL command
> > but just in case someone is updating the catalogs to do it and since it is
> > necessary in order to implement disabling of triggers, I thought I'd send
> > it in.
> >
> > Gavin

After taking a proper look, I agree with Tom that my patch was not the
proper solution to the problem. What we really need for the BEFORE
ROW triggers is the ability to say that there were no triggers executeed.
At the moment, if no triggers are executed (ie, they're all disabled),
then the executor thinks that a trigger returned NULL.

I'll try to find some time to fix this soon. As I noted, though, its not
critical because there's no DDL to disable a trigger.

Gavin

В списке pgsql-patches по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Add GUC_REPORT to server_encoding, integer_datetimes
Следующее
От: Gavin Sherry
Дата:
Сообщение: ALTER INDEX