Re: Row creation time

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Row creation time
Дата
Msg-id 511D308E-3E05-11D9-A6F6-000A95C88220@myrealbox.com
обсуждение исходный текст
Ответ на Row creation time  ("Najib Abi Fadel" <nabifadel@usj.edu.lb>)
Список pgsql-general
On Nov 24, 2004, at 7:07 PM, Najib Abi Fadel wrote:

> Is there a to get the row creation time if we know it's object ID ??

Only if you have a timestamp column on the table that records the
creation time. For example,

create table foo (
    foo_id serial not null unique
    , created_timestamp timestamptz not null
        default current_timestamp
) without oids;

Some people also like to include a modified_timestamp column, which can
easily be updated via an after update trigger.

hth

Michael Glaesemann
grzm myrealbox com


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

Предыдущее
От: "Patrick Fiche"
Дата:
Сообщение: Re: Creating index on a view?
Следующее
От: "Najib Abi Fadel"
Дата:
Сообщение: Re: Row creation time