Re: Trigger loop question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trigger loop question
Дата
Msg-id 8983.1079396005@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trigger loop question  (Mike Nolan <nolan@gw.tssi.com>)
Ответы Re: Trigger loop question
Список pgsql-general
Mike Nolan <nolan@gw.tssi.com> writes:
> If I set up an on update trigger for table 'A' that updates the
> corresponding column in table 'B', and one for table 'B' that updates
> the corresponding column in table 'A', does that create an endless loop?

Yes.

You could break the loop perhaps by not issuing an UPDATE if the data is
already correct in the other table.

            regards, tom lane

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

Предыдущее
От: Mike Nolan
Дата:
Сообщение: Trigger loop question
Следующее
От: Alex Satrapa
Дата:
Сообщение: Re: boolean to int