Re: Problems with Triggers

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Problems with Triggers
Дата
Msg-id 20040415093108.S31418@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Problems with Triggers  (Sebastian Böck <sebastianboeck@freenet.de>)
Список pgsql-general
On Thu, 15 Apr 2004, [ISO-8859-1] Sebastian B�ck wrote:

> is there a simple operator to determine whether the OLD.value and
> NEW.value are different. The <> operator is not working on NULL's.

Not as far as I know, although I think you can simplify the last part as
(NEW.val IS NULL <> OLD.val IS NULL)

> I need something like this:
> NEW.val <> Old.val OR
> NEW.val IS NULL AND OLD.val IS NOT NULL OR
> NEW.val IS NOT NULL AND OLD.val IS NULL

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

Предыдущее
От: "Development - multi.art.studio"
Дата:
Сообщение: Re: performance problem aftrer update from 7.1 to 7.4.2
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: performance problem aftrer update from 7.1 to 7.4.2