Recursion in triggers?

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема Recursion in triggers?
Дата
Msg-id 482E80323A35A54498B8B70FF2B87980043AE80ABA@azsmsx504.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: Recursion in triggers?  (Alban Hertroys <dalroi@solfertje.student.utwente.nl>)
Re: Recursion in triggers?  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general

Hi:

 

I’m dealing with a hierarchical design where changes in one record can and should cause changes in other records lower inthe hierarchy.  I’m trying to use update triggers to do this.  And  recursion would be a real nice way to do this.

 

What I need to know is if, in the “after” update trigger I make the subsequent updates to other records in the same table, with the OLD/NEW record ponters be set properly in those subsequent update trigger invocations?  Will the current and modified NEW.* values be passed down into the next update trigger “before” call as OLD.* values?  Or is recursion like this not allowed?

 

Thanks !

 

 

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: [LibPQ] Trying PQconnectStart: it doesn't seem to connect
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: FTS uses "tsquery" directly in the query