Re: Iterate OLD/NEW columns in a trigger?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Steve - DND <postgres(at)digitalnothing(dot)com>
Cc: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>, Scott Marlowe <smarlowe(at)g2switchworks(dot)com>, postgres-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Iterate OLD/NEW columns in a trigger?
Date: 2005-04-08 07:06:41
Message-ID: 42562D81.2010908@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steve - DND wrote:
>>>try pltcl, it's supposed to be pretty good at this.
>>>
>>
>>As is plperl and likely plpython, and maybe others.
>
>
> Does anyone have an example of this at work? I tried a few Google searches,
> but couldn't get any results showing iterating over the columns of a record.

Attached - example of tcl function that tracks changes to target tables.

--
Richard Huxton
Archonet Ltd

Attachment Content-Type Size
pg_tcl_func_example.txt text/plain 1.7 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Julian Scarfe 2005-04-08 09:05:14 Index use with left join
Previous Message Chris Smith 2005-04-08 04:37:23 Re: sequence advances on failed insert