Re: entry log

Поиск
Список
Период
Сортировка
От Robin Helgelin
Тема Re: entry log
Дата
Msg-id c014a9590708192325t44e1995fw1d526b491a888e17@mail.gmail.com
обсуждение исходный текст
Ответ на Re: entry log  (Michael Glaesemann <grzm@seespotcode.net>)
Список pgsql-general
On 8/19/07, Michael Glaesemann <grzm@seespotcode.net> wrote:
> As you mention, you could use a trigger instead of explicitly setting
> updated_at to DEFAULT, which might be more convenient because you
> don't need remember to set the updated_at column explicitly on update.
>
> Whether or not this information is *interesting* is really up to the
> specifics of your application, rather than answerable in a general
> sense.

I'm thinking it's probably going to make more sense to have a
logging/history table. What's the use of seeing when an entry was
updated when you don't know what was updated anyway :).

I guess that could be solved with triggers, each table have a trigger
that fires on update and runs a stored procedure.

--
        regards,
        Robin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Searching for Duplicates and Hosed the System
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Help with this query (some join stuff I think)