General Trigger Functions - Mailing list pgsql-general

From mjp@ornl.gov
Subject General Trigger Functions
Date
Msg-id 20000725154638.B8384@grail.lsd.ornl.gov
Whole thread Raw
Responses Re: General Trigger Functions  (JanWieck@t-online.de (Jan Wieck))
List pgsql-general
Hi,

Is there a way to write a "generic" trigger function in postgres
that can loop thru a table's cloumns (using TG_RELNAME)
and perform certain activities based on, say, certain column-types?
In other words, is it possible to assign OLD.<column_name>
and NEW.<column_name> to a variable inside triggers?

Thanks,
Morey Parang
ORNL

pgsql-general by date:

Previous
From: JanWieck@t-online.de (Jan Wieck)
Date:
Subject: Re: Comment #line after pre-processing
Next
From: Peter Eisentraut
Date:
Subject: RE: Describe structure.