Re: Trigger.. AFTER and BEFORE with specific column changed - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Trigger.. AFTER and BEFORE with specific column changed
Date
Msg-id 4F79AA03.9050501@gmail.com
Whole thread Raw
In response to Re: Trigger.. AFTER and BEFORE with specific column changed  (Albert <oo_O2_oo@hotmail.com>)
List pgsql-general
On 04/01/2012 10:10 PM, Albert wrote:
> *i get:*
>
> Syntax error at or near 'WHEN'
> LINE 1: ... check_update AFTER UPDATE ON accounts FOR EACH ROW WHEN
> (OLD.balance IS DISTINCT FROM NEW.balance) ....

Hmmm. So two questions:

What happens if you copy the example in the docs exactly and use NEW.*
and OLD.*?

What is the table definition for accounts?

>
> --
> View this message in context:
http://postgresql.1045698.n5.nabble.com/Trigger-AFTER-and-BEFORE-with-specific-column-changed-tp5610712p5611501.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>


--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: Mike Roest
Date:
Subject: Re: [HACKERS] Re: pg_dump incredibly slow dumping a single schema from a large db
Next
From: Yvon Thoraval
Date:
Subject: Mac OS X Lion how to connect to remote server ?