Re: trigger : emulate "instead of" with before ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: trigger : emulate "instead of" with before ?
Дата
Msg-id 352.1055512645@sss.pgh.pa.us
обсуждение исходный текст
Ответ на trigger : emulate "instead of" with before ?  ("Albrecht Berger" <berger1517@gmx.ch>)
Список pgsql-sql
"Albrecht Berger" <berger1517@gmx.ch> writes:
> I need a trigger which is updating a delete flag of a row instead of
> deleting it physically.

> How do I implement a trigger which doesn't execute a delete without raising
> an exception in plsql ?

If the BEFORE DELETE trigger returns NULL, the delete is skipped.
        regards, tom lane


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

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: trigger : emulate "instead of" with before ?
Следующее
От: Demidem Mohamed Amine
Дата:
Сообщение: create tables within functions