Re: Timestamp of insertion of the row.

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Anagha Joshi <ajoshi(at)nulinkinc(dot)com>
Cc: Mendola Gaetano <mendola(at)bigfoot(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Timestamp of insertion of the row.
Date: 2003-06-16 11:46:42
Message-ID: 20030616114642.GA27634@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Jun 16, 2003 at 15:45:28 +0530,
Anagha Joshi <ajoshi(at)nulinkinc(dot)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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Raj Mathur 2003-06-16 13:41:27 Move passwords between databases
Previous Message Mendola Gaetano 2003-06-16 10:56:23 Re: Timestamp of insertion of the row.