Search Postgresql Archives

Implement updated column in all tables

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

 



I have the following column in all my tables which contains data of last 
update of this row:

updated timestamp without time zone DEFAULT now() NOT NULL,

Hor to force Postgres to update this column automatically  with now() value 
every time when row is updated ?

I have about 100 tables and don't like to write 100 triggers. 



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

[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