From: Mendola Gaetano <mendola@bigfoot.com>
To: Anagha Joshi <ajoshi@nulinkinc.com>
To: pgsql-admin@postgresql.org
Subject: Re: Timestamp of insertion of the row.
Date: Wed, 11 Jun 2003 11:58:35 +0200
Message-ID: <004801c33000$0606d470$152aa8c0@GMENDOLA2> (raw)
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A402@delta.nulinkinc.com>
"Anagha Joshi" <ajoshi@nulinkinc.com> wrote:
> Hi,
> Is there any way to know data & time when the row is inserted into a
> table?
You should define a supplementary field with default value "now()"
this field will contain the transaction start time, if you want have the
real time (if you insert a milion of row inside the same transaction
using now() you'll have the same timestamp ) you should use instead:
"timeofday()".
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, ajoshi@nulinkinc.com
Subject: Re: Timestamp of insertion of the row.
In-Reply-To: <004801c33000$0606d470$152aa8c0@GMENDOLA2>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A402@delta.nulinkinc.com> <004801c33000$0606d470$152aa8c0@GMENDOLA2>
* 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