Re: 8.3 PL/pgSQL comparing arbitrary records

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема Re: 8.3 PL/pgSQL comparing arbitrary records
Дата
Msg-id 4ec1cf760912150604w6a834ac6j8189887dfdbedb44@mail.gmail.com
обсуждение исходный текст
Ответ на Re: 8.3 PL/pgSQL comparing arbitrary records  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
On Tue, Dec 15, 2009 at 1:23 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Hello
>
> NEW and OLD is comparable in 8.4. In 8.3 and older you have to use
> little bit different syntax
>
> http://www.postgres.cz/index.php/PostgreSQL_SQL_Tricks#Fast_compare_variables_NEW_and_OLD_in_trigger.27s_body
>

Thanks, Pavel! This is exactly what I was looking for. I am able to use

IF ROW(NEW.*) IS NOT DISTINCT FROM ROW(OLD.*) THEN ...

on 8.3.

Josh

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

Предыдущее
От: Howard Cole
Дата:
Сообщение: Re: How to remove non-UTF values from a table?
Следующее
От: Scott Mead
Дата:
Сообщение: Re: Too many postgres.exe