Re: Firing triggers based on certain Insert conditions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Firing triggers based on certain Insert conditions
Дата
Msg-id 15985.1170008416@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Firing triggers based on certain Insert conditions  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
Ответы Re: Firing triggers based on certain Insert conditions  ("Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com>)
Список pgsql-general
"Harpreet Dhaliwal" <harpreet.dhaliwal01@gmail.com> writes:
> 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?

No, and it seems pretty silly as a feature request.  Why don't you just
put the test in the trigger, and have it do nothing when you don't want
it to do anything?

            regards, tom lane

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

Предыдущее
От: "Anton Melser"
Дата:
Сообщение: Re: Questions about horizontal partitioning
Следующее
От: Bill Moran
Дата:
Сообщение: Re: Limit on number of users in postgresql?