| От | Tom Lane |
|---|---|
| Тема | Re: Trigger changes visibility |
| Дата | |
| Msg-id | 8922.1105988046@sss.pgh.pa.us обсуждение |
| Ответ на | Trigger changes visibility (amorati <antonio.cosas@terra.es>) |
| Список | pgsql-bugs |
amorati <antonio.cosas@terra.es> writes: > CREATE OR REPLACE FUNCTION "public"."DisparadorHijoBorradoCMin1" () > RETURNS trigger AS > ... > LANGUAGE 'plpgsql' IMMUTABLE CALLED ON NULL INPUT SECURITY INVOKER; > The problem is that the row's count done by the trigger is the same > number of rows that appears in the table before de delete was executed. Don't use an IMMUTABLE function as a trigger. I'm not sure if the system should actually prohibit this, but the function is doing what it's spec'd to, namely not seeing any side-effects of the calling query. See http://developer.postgresql.org/docs/postgres/xfunc-volatility.html regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера