Re: Metadata from NEW and OLD constructs?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Lenorovitz, Joel" <Joel(dot)Lenorovitz(at)usap(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Metadata from NEW and OLD constructs?
Date: 2006-12-12 10:50:32
Message-ID: 20061212105032.GB28714@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Dec 11, 2006 at 06:19:33PM -0700, Lenorovitz, Joel wrote:
> Greetings,
>
> I was wondering if it's possible to get any of the metadata from the NEW
> and OLD constructs in a trigger or view rule? Specifically, I'd like to
> get the column name or identifier anywhere the new record differs from
> the old record (i.e. NEW.column_X <> OLD.column_X). Any advice would be
> greatly appreciated.

If your trigger is written in C, definitly. If the trigger is in
pl/pgsql, no. For other languages I don't know. which language are you
using?

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-12-12 10:55:33 Re: returning parameters from function
Previous Message Martijn van Oosterhout 2006-12-12 10:49:25 Re: out of memory error on 3 table join