Re: How can I write trigger on a columns insert/update?

From: Richard Huxton <dev(at)archonet(dot)com>
To: dpandey(at)secf(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How can I write trigger on a columns insert/update?
Date: 2005-05-19 08:35:01
Message-ID: 428C4FB5.2040404@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dinesh Pandey wrote:
> How can I write trigger on a columns insert/update?
>
> CREATE TRIGGER mytrigger
> BEFORE
> INSERT OR UPDATE
> OF mycolumn ON mytable

You don't I'm afraid. It's not a feature that's supported yet. You have
to check which column(s) were changed in your functions.

It is on the TODO list though:
http://www.postgresql.org/docs/faqs.TODO.html

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message James Croft 2005-05-19 08:58:37 CREATE TABLE problem in plpgsql trigger
Previous Message Omachonu Ogali 2005-05-19 08:31:49 error explanation