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.0710111406330.19096@mazsola.iit.uni-miskolc.hu
Whole thread Raw
In response to Re: Finding broken regex'es  ("Dawid Kuroczko" <qnex42@gmail.com>)
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


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Refactored queries needing validation of syntactic equivalence
Next
From: Daniel Drotos
Date:
Subject: Accessing field of OLD in trigger