Firing triggers based on certain Insert conditions

Поиск
Список
Период
Сортировка
От Harpreet Dhaliwal
Тема Firing triggers based on certain Insert conditions
Дата
Msg-id d86a77ef0701281012r74a2a446i8a529119026fa046@mail.gmail.com
обсуждение исходный текст
Ответы Re: Firing triggers based on certain Insert conditions  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Firing triggers based on certain Insert conditions  ("Brendan Jurd" <direvus@gmail.com>)
Список pgsql-general
Hi
I have a table in which i have a field named 'source'
A trigger is written on this table.
I want this trigger to fire only when after Insert this field 'source'
has value = 'from', otherwise trigger should not be fired at all.
Just wondering if its really possible?
 
Thanks in advance.
Harpreet

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Password issue revisited
Следующее
От: "Anton Melser"
Дата:
Сообщение: Re: Questions about horizontal partitioning