Re: Trigger function volatility

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trigger function volatility
Дата
Msg-id 25804.1249434576@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trigger function volatility  (Tyler Mitchell <fission@ldx.ca>)
Список pgsql-novice
Tyler Mitchell <fission@ldx.ca> writes:
> Can anyone think of any issues with IMMUTABLE in this case?

It's incorrect.  The function is altering NEW, so I hardly see how you
can think it's immutable --- it has side effects.

The system might let you do this at the moment, because it pays
hardly any attention to the volatility classification of a trigger
function anyhow; but that doesn't make it a good idea.

            regards, tom lane

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

Предыдущее
От: David Powell
Дата:
Сообщение: can long-lived transactions cause problems?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: can long-lived transactions cause problems?