pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Anagha Joshi <ajoshi@nulinkinc.com>
Cc: Mendola Gaetano <mendola@bigfoot.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Timestamp of insertion of the row.
Date: Mon, 16 Jun 2003 06:46:42 -0500
Message-ID: <20030616114642.GA27634@wolff.to> (raw)
In-Reply-To: <FF851C7EEB75954F9BCFB5CA117AB1EC61A41B@delta.nulinkinc.com>
References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A41B@delta.nulinkinc.com>

On Mon, Jun 16, 2003 at 15:45:28 +0530,
  Anagha Joshi <ajoshi@nulinkinc.com> wrote:
> Hi All,
> I mean to say ....
> Can I know the time when particular row is inserted into the table? i.e.
> timestamp of insertion of row into the table.

That isn't precise. What do you mean when you say it is inserted into the
table. Do you mean when the transaction is committed or started, or perhaps
the time the command to insert the row is run or perhaps the time of the
external event that prompted the the insert? Sometimes these times can
be quite different, especially if you are using persistant connections
with software that issues 'begin's for you.

If the time doesn't need to be synchronized with any other times in the
same transaction, then timeofday is probably your best bet.



view thread (13+ messages)

Message-ID: <20030616114642.GA27634@wolff.to>
Permalink:  ../20030616114642.GA27634@wolff.to/
Also on:    postgresql.org/message-id/20030616114642.GA27634@wolff.to

 · 

reply

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, ajoshi@nulinkinc.com, mendola@bigfoot.com
  Subject: Re: Timestamp of insertion of the row.
  In-Reply-To: <20030616114642.GA27634@wolff.to>
  References: <FF851C7EEB75954F9BCFB5CA117AB1EC61A41B@delta.nulinkinc.com> <20030616114642.GA27634@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