From: Mendola Gaetano <mendola@bigfoot.com>
To: Henry House <hajhouse@houseag.uce-not-wanted-here.com>
To: Anagha Joshi <ajoshi@nulinkinc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Timestamp of insertion of the row.
Date: Fri, 13 Jun 2003 00:17:38 +0200
Message-ID: <002601c33130$6febee30$10d4a8c0@mm.eutelsat.org> (raw)
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A402@delta.nulinkinc.com>
<20030612120056.GA11922@houseag.com>
"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.
Regards
Gaetano Mendola
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: mendola@bigfoot.com, hajhouse@houseag.uce-not-wanted-here.com, ajoshi@nulinkinc.com
Subject: Re: Timestamp of insertion of the row.
In-Reply-To: <002601c33130$6febee30$10d4a8c0@mm.eutelsat.org>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A402@delta.nulinkinc.com> <20030612120056.GA11922@houseag.com> <002601c33130$6febee30$10d4a8c0@mm.eutelsat.org>
* 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