Re: Can update triggers detect the column in the update statement? - Mailing list pgsql-general

From Martin Gainty
Subject Re: Can update triggers detect the column in the update statement?
Date
Msg-id BLU142-W4541983D103203C4C41491AE380@phx.gbl
Whole thread Raw
In response to Can update triggers detect the column in the update statement?  (Ben Chobot <bench@silentmedia.com>)
List 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@silentmedia.com
> To: pgsql-general@postgresql.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@postgresql.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. See Now

pgsql-general by date:

Previous
From: Carlos Moreno
Date:
Subject: Installation on CentOS 5.2 (readline trouble)
Next
From: "Scott Marlowe"
Date:
Subject: Re: Installation on CentOS 5.2 (readline trouble)