Function to detect trigger recursion

Поиск
Список
Период
Сортировка
От Vincent Roberts
Тема Function to detect trigger recursion
Дата
Msg-id 3B028E5D.A8C46985@fccc.edu
обсуждение исходный текст
Ответ на 7.1-1 installation from RPM  ("Mihai Gheorghiu" <tanethq@earthlink.net>)
Список pgsql-general
Hello:

Is there a builtin mechanism for detecting trigger recursion or more
specifically
one trigger , causing another tables trigger to fire.

Example:

Table A is updated

Table A's update trigger executes
{
    Updates the B table - (maintaining special RI etc.)
    Table B's update trigger executes
     {
           <does some stuff>
           <need to know if I was triggered from within another trigger> ?????
( Is there a function that does this? )
           <does some more stuff>
      }
}

Вложения

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

Предыдущее
От: Alexander Dederer
Дата:
Сообщение: Parallel Serever use PostgreSQL
Следующее
От: "Gregory Wood"
Дата:
Сообщение: Re: set transaction question