Re: Two rules on a view do not like each other :-(

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Two rules on a view do not like each other :-(
Дата
Msg-id 29240.1069619572@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Two rules on a view do not like each other :-(  (Gaetano Mendola <mendola@bigfoot.com>)
Ответы Re: Two rules on a view do not like each other :-(
Список pgsql-general
Gaetano Mendola <mendola@bigfoot.com> writes:
> Tom Lane wrote:
>> Yes --- by name.

> Why not implement in SQL standard way ?
> I'm against this alphabetic order firing.

You think order-of-creation has something to recommend it?  I don't see
what.  It just makes it extremely painful to control the firing order
when you need to --- you end up dropping and recreating all the
triggers, which is a tedious and error-prone approach.

> I's not safe develop a new trigger and completely change
> the trigger firing order. Suppose that I want multiply for
> 2 a field of a table for each insert. What happen if that field
> is manipulated already by another trigger calculating let me say:
> sqrt ?

You can equally easily run into similar problems with creation-order
firing as well.  There's no substitute for actually thinking about the
interactions of multiple triggers on the same event...

            regards, tom lane

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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: Two rules on a view do not like each other :-(
Следующее
От: Gaetano Mendola
Дата:
Сообщение: Re: Two rules on a view do not like each other :-(