Re: Question about accessing current row data inside trigger - Mailing list pgsql-general

From peter Willis
Subject Re: Question about accessing current row data inside trigger
Date
Msg-id 4235B4E9.5030201@borstad.com
Whole thread Raw
In response to Re: Question about accessing current row data inside trigger  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hello,

This issue is resolved.
I was using the wrong struct.

Peter


Tom Lane wrote:

>peter Willis <peterw@borstad.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
>
>
>
>



pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: Re: Using sequence name depending on other column
Next
From: peter Willis
Date:
Subject: Re: Question about accessing current row data inside trigger