Re: Empty Updates, ON UPDATE triggers and Rules - Mailing list pgsql-general

From Jeff Davis
Subject Re: Empty Updates, ON UPDATE triggers and Rules
Date
Msg-id 1249580317.9256.768.camel@jdavis
Whole thread Raw
In response to Re: Empty Updates, ON UPDATE triggers and Rules  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: Empty Updates, ON UPDATE triggers and Rules
Re: Empty Updates, ON UPDATE triggers and Rules
List pgsql-general
On Thu, 2009-08-06 at 13:15 -0400, Merlin Moncure wrote:
> in 8.4 you can (and should) do:
> WHERE old = new

I couldn't get that to work in a rule.

>   IF NEW != OLD THEN  -- 8.4 syntax

Does this work correctly in the case of NULLs? It looks like it does,
but that seems strange, because ROW(1, NULL) = ROW(1, NULL) evaluates to
NULL. Where is this documented?

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: decibel
Date:
Subject: Re: Constraint between 2 tables and taking a coherent snapshot of both
Next
From: "david.schruth"
Date:
Subject: JOIN a UNION