pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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




view thread (6+ messages)  latest in thread

Message-ID: <200311041452.34214.josh@agliodbs.com>
Permalink:  ../200311041452.34214.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200311041452.34214.josh@agliodbs.com

 · 

reply

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