Re: looping on NEW and OLD in a trigger

From: "Michael P(dot) Soulier" <michael_soulier(at)mitel(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: looping on NEW and OLD in a trigger
Date: 2010-08-26 16:59:16
Message-ID: 20100826165916.GE6913@e-smith.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 26/08/10 Tom Lane did say:

> If you're trying to do this in plpgsql, the answer is you can't.
> plpgsql doesn't support dynamic field references, which is what you'd
> need for what (I think) you're trying to do.
>
> You can do it in pltcl or plperl, and probably also plpython though
> I don't know enough python to be sure.

Ok, I'll try plpython then.

Thanks,
Mike
--
Michael P. Soulier <michael_soulier(at)mitel(dot)com>, 613-592-2122 x2522
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Denis Papathanasiou 2010-08-26 17:21:53 Re: Differences between to_tsquery() and plainto_tsquery() when it comes to applying an index?
Previous Message Tom Lane 2010-08-26 16:29:23 Re: looping on NEW and OLD in a trigger