[Cialug] Postgres trigger help.

Tim Wilson tim_linux at wilson-home.com
Mon Aug 13 22:02:42 CDT 2007


I'm using Postgres 7.1.3, and I'm trying to set up a trigger.  I have a
last_updated column on all of my tables, that is of type timestamp.  I want
to set the field every time the record is updated.  I thought a trigger
would be best for that, but every example I find via Google doesn't work.
One said to create a function that returned type TRIGGER, another said type
VOID, neither of which worked.  Every example I find uses one of those
return types.  Anyone have any ideas?

-- 
Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20070813/b6f0eaac/attachment.html


More information about the Cialug mailing list