Accessing field of OLD in trigger - Mailing list pgsql-sql

From Daniel Drotos
Subject Accessing field of OLD in trigger
Date
Msg-id Pine.LNX.4.64.0710121158300.560@mazsola.iit.uni-miskolc.hu
Whole thread Raw
Responses Re: Accessing field of OLD in trigger
List pgsql-sql
Hi,


I'm working on a row level plpgsql trigger running after delete, using 
a 8.0.3 server. It gets a parameter which is a field name of the OLD 
record. How can that field be accessed?

I'd like to do something like:

for recvar in 'select OLD.'||quote_ident(TG_ARGV[0])...

Daniel

Ps: sorry about my previouse try of posting this message, it went to 
wrong place.


pgsql-sql by date:

Previous
From: Daniel Drotos
Date:
Subject: Accessing field of OLD in trigger
Next
From: Josh Trutwin
Date:
Subject: Re: Accessing field of OLD in trigger