Re: Rules versus triggers

Поиск
Список
Период
Сортировка
От stan
Тема Re: Rules versus triggers
Дата
Msg-id 20200307145718.GB10796@panix.com
обсуждение исходный текст
Ответ на Re: Rules versus triggers  (Justin <zzzzz.graf@gmail.com>)
Ответы Re: Rules versus triggers
Список pgsql-general
On Sat, Mar 07, 2020 at 09:47:39AM -0500, Justin wrote:
> Hi Stan
> 
> Rules actual are able to rewrite the SQL query sent to  postgresql.  Most
> everyone suggestion is avoid rules.
> 
> Triggers are just like every other databases Triggers firing off code for
> Insert/Update/Delete/Truncate event
> https://www.postgresql.org/docs/current/sql-createtrigger.html
> 

So, the RULE can actually rewrite the query, instead of replacing it,
which is what I m doing in the function, correct?
-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                        -- Benjamin Franklin



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

Предыдущее
От: stan
Дата:
Сообщение: RAISE ERROR
Следующее
От: Justin
Дата:
Сообщение: Re: Rules versus triggers