Re: A trigger that acts on a column with a given column - Mailing list pgsql-general

From Karl O. Pinc
Subject Re: A trigger that acts on a column with a given column
Date
Msg-id 1121112273l.16476l.7l@mofo
Whole thread Raw
In response to A trigger that acts on a column with a given column name  (BigSmoke <bigsmoke@gmail.com>)
List pgsql-general
On 07/07/2005 02:28:23 PM, BigSmoke wrote:
> In a trigger function, I'm trying to refer to a column given by an
> argument
> to the trigger function.

I sometimes have a tendency to use the m4 macro processor
to write different trigger functions with the
correct column name substituted in where appropriate.
More generally, I write macros and use them when
writing my triggers.

Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein


pgsql-general by date:

Previous
From: snacktime
Date:
Subject: Re: strange problem with pl/pgsql function caching of bad values
Next
From: Vivek Khera
Date:
Subject: Re: PostgreSQL Scalability