Re: should this be a trigger or a rule?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: should this be a trigger or a rule?
Дата
Msg-id 11551.1008468260@sss.pgh.pa.us
обсуждение исходный текст
Ответ на should this be a trigger or a rule?  (marc@oscar.eng.cv.net (Marc Spitzer))
Ответы Re: should this be a trigger or a rule?
Список pgsql-sql
marc@oscar.eng.cv.net (Marc Spitzer) writes:
> I have 3 tables: pings, curr_state, ping_log and here is what I want
> to happen:
> when I insert a row into pings it checks to see if the ping was
> sucessful or not.

Anything that's most naturally described as driven by insert (or update
or delete) of individual rows is best done as a trigger, IMHO.
        regards, tom lane


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

Предыдущее
От: marc@oscar.eng.cv.net (Marc Spitzer)
Дата:
Сообщение: should this be a trigger or a rule?
Следующее
От: Marc Spitzer
Дата:
Сообщение: Re: should this be a trigger or a rule?