Re: Trigger: Column Update

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Trigger: Column Update
Дата
Msg-id 4CDD7E40.2020401@lelarge.info
обсуждение исходный текст
Ответ на Trigger: Column Update  (Ricardo Bayley <ricardo.bayley@gmail.com>)
Ответы Re: Trigger: Column Update  (Ricardo Bayley <ricardo.bayley@gmail.com>)
Список pgsql-admin
Le 12/11/2010 18:37, Ricardo Bayley a écrit :
> Hi,
>
> I am wondering if there is a way to identify which columns have been
> modified. Is there some sort of TG_TABLE_NAME, which states the
> modified columns ?

Nope. You should check yourself.

> Or should we check this ourselves doing something like OLD.columnA !=
> NEW.columnA ?

Use IS DISTINCT OF instead of = to deal with NULL values.


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

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

Предыдущее
От: Viktor Bojović
Дата:
Сообщение: Re: GUI ERD/ERM tools?
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: locales and encodings Oh MY!