Re: Rules, triggers and such

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Rules, triggers and such
Дата
Msg-id 200912091708.50785.guillaume@lelarge.info
обсуждение исходный текст
Ответ на Rules, triggers and such  (George Silva <georger.silva@gmail.com>)
Список pgsql-general
Le mercredi 9 décembre 2009 à 17:04:32, George Silva a écrit :
> Hello all again :)
>
> I have a question: is it possible to replicate the behavior of a rule
> INSTEAD of with a TRIGGER?
>
> For some specific reasons i need to use a trigger to update a
> secondary table, but i don't want the changes to happen in the primary
> table too.
>
> Is it possible to do it? If so, how?
>

Try a BEFORE trigger, and RETURN NULL in your stored function.


--
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

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

Предыдущее
От: George Silva
Дата:
Сообщение: Rules, triggers and such
Следующее
От: Sergey Levchenko
Дата:
Сообщение: Problem with SET CONSTRAINTS some_constraint_fkey DEFERRED