Re: Updating

Поиск
Список
Период
Сортировка
От Andreas 'ads' Scherbaum
Тема Re: Updating
Дата
Msg-id 20080317012852.18ada9af@iridium.home
обсуждение исходный текст
Ответ на Updating  (Bob Pawley <rjpawley@shaw.ca>)
Список pgsql-general
Hello,

On Sun, 16 Mar 2008 15:32:27 -0700 Bob Pawley wrote:

> Is there a method available for triggering a function after an update on a
> particular column in a table?
>
> The only way that I have found is to trigger after an update on the whole
> table, which of course can lead to problems.

You can compare OLD.column and NEW.column and only continue your trigger
function, if you detect a change.


Kind regards

--
                Andreas 'ads' Scherbaum
German PostgreSQL User Group
European PostgreSQL User Group - Board of Directors

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Updating
Следующее
От: Bob Pawley
Дата:
Сообщение: Re: Updating