Re: Trigger to identify which column(s) updated

From: "V i s h a l Kashyap (at) [Sai Hertz And Control Systems]" <sank89(at)sancharnet(dot)in>
To: Jack Kerkhof <jack(dot)kerkhof(at)guest-tek(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Trigger to identify which column(s) updated
Date: 2004-01-20 05:27:23
Message-ID: 400CBC3B.9030902@sancharnet.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Dear Jack ,

>for each column in new:
> if (new.column(1) != old.column(1)) ...
>
> ...and then some snippet of code to determine the primary key column
>of new (or old)
>
>
Check the following link

http://gborg.postgresql.org/project/tablelog/projdisplay.php

Hope this helps

--
Regards,
Vishal Kashyap

~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
I Know you believe my words so logon to Jabber.org
and add vishalkashyap(at)jabber(dot)org to your roster.
~*~*~*~*~*~*~*~*
I am usually called as Vishal Kashyap
but my Girl friend calls me as Vishal CASH UP.
This is because others know me because of my generosity
and my Girlfriend knows me because of my CASH.
~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*

Browse pgsql-sql by date

  From Date Subject
Next Message Kumar 2004-01-20 06:12:54 Fetching a single column from a record returning function
Previous Message Jim Johannsen 2004-01-20 00:13:20 Re: Is it possible in PostgreSQL?