Re: Rules: A Modest Proposal

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Rules: A Modest Proposal
Дата
Msg-id 200910051246.n95CkmC12734@momjian.us
обсуждение исходный текст
Ответ на Re: Rules: A Modest Proposal  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-hackers
Greg Sabino Mullane wrote:
> Could this be done with a trigger? Yes, but on the plus rules side:
> 
> * It's faster
> * It's easier to write
> * It's immediately viewable as to what is going on with a \d mytable
> * Dropping it won't leave an unused function around
> * We can still do ALTER TABLE DISABLE TRIGGER ALL
> 
> I can give more examples, if you like, but removing a major feature of
> Postgres with no real justificatgion seems a bit hasty, to say the least.

Agreed, here is another rules example that logs table changes to a log
table:
http://www.postgresql.org/files/documentation/books/aw_pgsql/node124.html

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Rules: A Modest Proposal
Следующее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: Review of "SQLDA support for ECPG"