Re: Iterating through individual fields of OLD/NEW records in plpgsql trigger - Mailing list pgsql-general

From Tom Lane
Subject Re: Iterating through individual fields of OLD/NEW records in plpgsql trigger
Date
Msg-id 3086.1053834200@sss.pgh.pa.us
Whole thread Raw
In response to Iterating through individual fields of OLD/NEW records in plpgsql trigger  (j.sachanbinski@coroplast.de)
List pgsql-general
j.sachanbinski@coroplast.de writes:
> is there a way to loop/iterate through every individual field of the
> OLD/NEW records in plpgsql trigger function?

No, plpgsql isn't designed to treat field names as data.  You could do
it in pltcl though.  Maybe plpython too; I'm not familiar with that.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Trigger in transaction
Next
From: Tom Lane
Date:
Subject: Re: disk space usage enlarging despite vacuuming