Re: 8.3 PL/pgSQL comparing arbitrary records - Mailing list pgsql-general

From Josh Kupershmidt
Subject Re: 8.3 PL/pgSQL comparing arbitrary records
Date
Msg-id 4ec1cf760912150604w6a834ac6j8189887dfdbedb44@mail.gmail.com
Whole thread Raw
In response to Re: 8.3 PL/pgSQL comparing arbitrary records  (Pavel Stehule <pavel.stehule@gmail.com>)
List 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 by date:

Previous
From: Howard Cole
Date:
Subject: Re: How to remove non-UTF values from a table?
Next
From: Scott Mead
Date:
Subject: Re: Too many postgres.exe