Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux