Re: logging table changes

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: logging table changes
Дата
Msg-id AANLkTi=ofXWpgf4KOO4c_MkzYRLShE60WyS=d6+EUBJH@mail.gmail.com
обсуждение исходный текст
Ответ на Re: logging table changes  ("Rob Richardson" <Rob.Richardson@rad-con.com>)
Список pgsql-novice
On Thu, Sep 9, 2010 at 10:48 AM, Rob Richardson
<Rob.Richardson@rad-con.com> wrote:

>
> If old.value <> new.value then
>        do something
> End if

If old.value IS DISTINCT FROM new.value THEN
  --do something
End if


This version will produce expected results when dealing with nulls.  I
learned this the hard way.

--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

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

Предыдущее
От: "Rob Richardson"
Дата:
Сообщение: Re: logging table changes
Следующее
От: Matthias Leopold
Дата:
Сообщение: Re: logging table changes