Implement updated column in all tables

Поиск
Список
Период
Сортировка
От Andrus
Тема Implement updated column in all tables
Дата
Msg-id dajaik$4qn$1@news.hub.org
обсуждение исходный текст
Ответы Re: Implement updated column in all tables  (Stephane Bortzmeyer <bortzmeyer@nic.fr>)
Re: Implement updated column in all tables  (Scott Marlowe <smarlowe@g2switchworks.com>)
Список pgsql-general
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.



В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postmaster link to postgres executable
Следующее
От: "Andrus"
Дата:
Сообщение: How to force Postgres to calculate MAX(boolean)