Re: Timestamp of insertion of the row.

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Timestamp of insertion of the row.
Дата
Msg-id 20030613153935.GD16756@wolff.to
обсуждение исходный текст
Ответ на Re: Timestamp of insertion of the row.  ("Mendola Gaetano" <mendola@bigfoot.com>)
Список pgsql-admin
On Fri, Jun 13, 2003 at 00:17:38 +0200,
  Mendola Gaetano <mendola@bigfoot.com> wrote:
> "Henry House" <hajhouse@houseag.uce-not-wanted-here.com> wrote:
> > Yes. Easy answer: use a column of type 'timestamp default now()'.
>
> With that default value you store the time
> stamp of transaction where the row was inserted. Immagine to insert
> inside the same transaction a lot of rows and this operation will take long
> 1 minute, you'll have all rows with the same time stamp instead of time
> stamp spreaded inside that minute, use timeofday instead.

You still may not want to use timeofday even for long transactions.
It depends on what the data really means to you.

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

Предыдущее
От: "kopra"
Дата:
Сообщение: Re: DUMPall PG7.1.3 restore to PG7.3.2
Следующее
От: "Sidar Lopez Cruz"
Дата:
Сообщение: statistics question