Re: Passing arguments to a function called by a trigger

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Passing arguments to a function called by a trigger
Date: 2013-07-27 13:05:39
Message-ID: 20130727130539.GA3062@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Some Developer <someukdeveloper(at)gmail(dot)com> wrote:

> I have an INSERT AFTER trigger that runs on inserts into a specific
> table. I'm not sure if the function automatically gets all the
> information that was inserted into the table or whether you have to
> manually pass it in?

NEW.<colum_name> is your friend ;-)

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message amulsul 2013-07-29 01:22:39 Re: Passing arguments to a function called by a trigger
Previous Message Some Developer 2013-07-27 12:15:47 Re: Passing arguments to a function called by a trigger