Re: A trigger that acts on a column with a given column

From: "Karl O(dot) Pinc" <kop(at)meme(dot)com>
To: BigSmoke <bigsmoke(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: A trigger that acts on a column with a given column
Date: 2005-07-11 20:04:33
Message-ID: 1121112273l.16476l.7l@mofo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)meme(dot)com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vivek Khera 2005-07-11 21:15:26 Re: PostgreSQL Scalability
Previous Message Karl O. Pinc 2005-07-11 19:43:48 Db and schema names in logged errors