Re: IF ROW( NEW ) <> ROW( OLD )

Поиск
Список
Период
Сортировка
От Richard Broersma
Тема Re: IF ROW( NEW ) <> ROW( OLD )
Дата
Msg-id 396486430806271028q6dfc3614w9840452829ff123d@mail.gmail.com
обсуждение исходный текст
Ответ на Re: IF ROW( NEW ) <> ROW( OLD )  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, Jun 25, 2008 at 8:17 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I think IF ROW(NEW.*) <> ROW(OLD.*) will work in recent releases.
>
> Actually you'd better use IF ROW(NEW.*) IS DISTINCT FROM ROW(OLD.*) ...
> you really don't want to rely on <> as it will not give the behavior
> you want in the presence of null columns.

Thanks that worked!


--
Regards,
Richard Broersma Jr.

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

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: compiling, performance of PostGreSQL 8.3 on 64-bit processors
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Problem with FOUND