Re: Question about accessing current row data inside trigger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: peter Willis <peterw(at)borstad(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question about accessing current row data inside trigger
Date: 2005-03-14 06:35:38
Message-ID: 5639.1110782138@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

peter Willis <peterw(at)borstad(dot)com> writes:
> I have a trigger function written in C.
> ...
> Since the trigger is called after each row update the actual row data
> should be available in some way to the trigger.

Sure: tg_trigtuple or tg_newtuple depending on which state you want.
See
http://www.postgresql.org/docs/8.0/static/trigger-interface.html

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-03-14 06:40:02 Re: [PATCHES] A way to let Vacuum warn if FSM settings are low. [final?]
Previous Message Tom Lane 2005-03-14 06:21:28 Re: fied separator change from the shell command line