From: Bruno Wolff III <bruno@wolff.to>
To: Mendola Gaetano <mendola@bigfoot.com>
Cc: Henry House <hajhouse@houseag.uce-not-wanted-here.com>
Cc: Anagha Joshi <ajoshi@nulinkinc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Timestamp of insertion of the row.
Date: Fri, 13 Jun 2003 10:39:35 -0500
Message-ID: <20030613153935.GD16756@wolff.to> (raw)
In-Reply-To: <002601c33130$6febee30$10d4a8c0@mm.eutelsat.org>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A402@delta.nulinkinc.com>
<20030612120056.GA11922@houseag.com>
<002601c33130$6febee30$10d4a8c0@mm.eutelsat.org>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, mendola@bigfoot.com, hajhouse@houseag.uce-not-wanted-here.com, ajoshi@nulinkinc.com
Subject: Re: Timestamp of insertion of the row.
In-Reply-To: <20030613153935.GD16756@wolff.to>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A402@delta.nulinkinc.com> <20030612120056.GA11922@houseag.com> <002601c33130$6febee30$10d4a8c0@mm.eutelsat.org> <20030613153935.GD16756@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox