From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
---|---|
To: | "Michael P(dot) Soulier" <michael_soulier(at)mitel(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: looping on NEW and OLD in a trigger |
Date: | 2010-08-26 21:47:55 |
Message-ID: | AANLkTimb8wZXA+5BPjV=NSg9-_rWEyLTqnztYCmcf_2N@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Aug 26, 2010 at 12:59 PM, Michael P. Soulier
<michael_soulier(at)mitel(dot)com> wrote:
> 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.
For a more in-depth treatment of the topic, see:
http://www.mail-archive.com/pgsql-hackers(at)postgresql(dot)org/msg139182.html
(the entire thread is worth reading IMO if you want to really
understand dynamic record inspection really well, both in pl/pgsql and
other PLs).
merlin
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2010-08-26 21:59:25 | Re: How to convert a binary filed to an integer field? |
Previous Message | wei725 | 2010-08-26 21:41:30 | Re: How to convert a binary filed to an integer field? |