Re: Can update triggers detect the column in the update statement?

From: Martin Gainty <mgainty(at)hotmail(dot)com>
To: Ben Chobot <bench(at)silentmedia(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Can update triggers detect the column in the update statement?
Date: 2008-10-07 02:01:09
Message-ID: BLU142-W4541983D103203C4C41491AE380@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


hi ben

trigger happens only a with dml update (you have to change something in the DB for the trigger to do its work)

Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.

> From: bench(at)silentmedia(dot)com
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] Can update triggers detect the column in the update statement?
> Date: Mon, 6 Oct 2008 17:24:37 -0700
>
> Say I have:
>
> create t (c1 int not null, c2 int);
>
> Is it possible to create an update trigger on t such updates will only
> be allowed if the update statement explicitly sets c1, even if the new
> value is the same?
>
>
> (I'm trying to write a change log system where the users are
> application users, not database users.)
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-10-07 03:36:19 Re: Installation on CentOS 5.2 (readline trouble)
Previous Message Carlos Moreno 2008-10-07 01:17:44 Installation on CentOS 5.2 (readline trouble)