From: Josh Berkus <josh@agliodbs.com>
To: Jamie Lawrence <postgres@jal.org>
To: pgsql-sql@postgresql.org
Subject: Re: Problems with NEW.* in triggers
Date: Tue, 4 Nov 2003 14:52:34 -0800
Message-ID: <200311041452.34214.josh@agliodbs.com> (raw)
In-Reply-To: <20031104223319.GA2879@clueinc.net>
References: <20031104223319.GA2879@clueinc.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, postgres@jal.org
Subject: Re: Problems with NEW.* in triggers
In-Reply-To: <200311041452.34214.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox