pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: vivek@staff.ownmail.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: change tuple before insert
Date: Wed, 02 Aug 2006 08:55:07 -0400
Message-ID: <14793.1154523307@sss.pgh.pa.us> (raw)
In-Reply-To: <200608021103.k72B3dsU018810@mail009.ownmail.com>
References: <200608021103.k72B3dsU018810@mail009.ownmail.com>

<vivek@staff.ownmail.com> writes:
> How do i change the contents of a tuple for a row level trigger? do i have to return tg_trigtuple or tg_newtuple? The doc is confusing. it says a tg_newtuple can only be used in case of an update>

You should not scribble on either of those.  Make a fresh tuple and
return that.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <14793.1154523307@sss.pgh.pa.us>
Permalink:  ../14793.1154523307@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14793.1154523307@sss.pgh.pa.us

 · 

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-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, vivek@staff.ownmail.com
  Subject: Re: change tuple before insert
  In-Reply-To: <14793.1154523307@sss.pgh.pa.us>

* 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