Re: Reference new.* or old.* in dynamic statement?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Boes <jeff(at)endpoint(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Reference new.* or old.* in dynamic statement?
Date: 2005-08-09 15:54:33
Message-ID: 16663.1123602873@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeff Boes <jeff(at)endpoint(dot)com> writes:
> I'm trying to write a general-purpose trigger that will disallow updates
> on certain fields (I could probably do this in other ways, but I have a
> stubborn streak ...).

I think it's pretty much impossible to do this in plpgsql. You could do
it in the other PLs that support triggers, or in C. From a performance
standpoint I'd think you'd want to do it in C anyway. There are some
closely related example trigger functions in the contrib tree.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-08-09 15:59:27 Re: [GENERAL] postgres & server encodings
Previous Message Martijn van Oosterhout 2005-08-09 15:54:02 Re: Case sensitivity