Re: Problems with NEW.* in triggers

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Jamie Lawrence <postgres(at)jal(dot)org>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Problems with NEW.* in triggers
Date: 2003-11-04 22:52:34
Message-ID: 200311041452.34214.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Jamie,

> Any thoughts on what I'm doing wrong??

Yes. If you want to modify the new data, you need to use a BEFORE trigger.
AFTER triggers can't modify NEW, just read it.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jamie Lawrence 2003-11-04 23:14:02 Re: Problems with NEW.* in triggers
Previous Message Tom Lane 2003-11-04 22:48:34 Re: Problems with NEW.* in triggers