X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 1A9F630DCD2 for ; Mon, 16 Jun 2003 11:43:58 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 09487-04 for ; Mon, 16 Jun 2003 08:43:47 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id D218B30D6D9 for ; Mon, 16 Jun 2003 08:43:46 -0300 (ADT) Received: (qmail 27671 invoked by uid 500); 16 Jun 2003 11:46:42 -0000 Date: Mon, 16 Jun 2003 06:46:42 -0500 From: Bruno Wolff III To: Anagha Joshi Cc: Mendola Gaetano , pgsql-admin@postgresql.org Subject: Re: Timestamp of insertion of the row. Message-ID: <20030616114642.GA27634@wolff.to> Mail-Followup-To: Anagha Joshi , Mendola Gaetano , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Archive-Number: 200306/162 X-Sequence-Number: 9153 On Mon, Jun 16, 2003 at 15:45:28 +0530, Anagha Joshi 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.