Search Postgresql Archives

Re: Porting Schema from MySQL

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

 




On Oct 1, 2007, at 14:54 , Farhan Khan wrote:

Any pointer for implementing this functionality in postgresql ??

Write a trigger that fires on update and replaces the value with CURRENT_TIMESTAMP.

You could probably do something like this with rules as well, but the trigger method is probably more straightforward.

Michael Glaesemann
grzm seespotcode net



---------------------------(end of broadcast)---------------------------
TIP 6: 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