Re: simple trigger question ...

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: simple trigger question ...
Дата
Msg-id 1049380007.22629.14.camel@jester
обсуждение исходный текст
Ответ на Re: simple trigger question ...  ("Marc G. Fournier" <scrappy@hub.org>)
Ответы Re: simple trigger question ...  ("Marc G. Fournier" <scrappy@hub.org>)
Список pgsql-sql
> 'K, that makes it workable ... final question (I hope!) ... RULEs vs
> TRIGGERs?  I ended up doing it as a RULE, since I could do it without a
> function ... but is there a reason why that is a Bad Idea?  Or in a case
> like this, it doesn't really matter?

Rules are per statement, not per row.

An INSERT INTO ... SELECT ... statement will cause a single execution of
the rule even if you insert several hundred rows.

--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

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

Предыдущее
От: "mohamed imdadullah"
Дата:
Сообщение: Re: Syntax problem!
Следующее
От: Tom Lane
Дата:
Сообщение: Re: simple trigger question ...