Re: Updating - Mailing list pgsql-general

From Tom Lane
Subject Re: Updating
Date
Msg-id 4145.1205800410@sss.pgh.pa.us
Whole thread Raw
In response to Re: Updating  (Bob Pawley <rjpawley@shaw.ca>)
List pgsql-general
Bob Pawley <rjpawley@shaw.ca> writes:
>  If NEW.p_id.association.monitoring_fluid is distinct from
> Old.p_id.association.monitoring_fluid Then

Surely this should just be

    if new.monitoring_fluid is distinct from old.monitoring_fluid then

Also, I think you forgot an "end if" and a "return new" at the end.

            regards, tom lane

pgsql-general by date:

Previous
From: "Blair Bethwaite"
Date:
Subject: Is autovacuum on?
Next
From: "Tyler, Mark"
Date:
Subject: Re: Problem with async notifications of table updates