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 06F2B30DC51 for ; Fri, 13 Jun 2003 15:36: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 50599-05 for ; Fri, 13 Jun 2003 12:36:47 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 332D630EBA6 for ; Fri, 13 Jun 2003 12:36:47 -0300 (ADT) Received: (qmail 17334 invoked by uid 500); 13 Jun 2003 15:39:35 -0000 Date: Fri, 13 Jun 2003 10:39:35 -0500 From: Bruno Wolff III To: Mendola Gaetano Cc: Henry House , Anagha Joshi , pgsql-admin@postgresql.org Subject: Re: Timestamp of insertion of the row. Message-ID: <20030613153935.GD16756@wolff.to> Mail-Followup-To: Mendola Gaetano , Henry House , Anagha Joshi , pgsql-admin@postgresql.org References: <20030612120056.GA11922@houseag.com> <002601c33130$6febee30$10d4a8c0@mm.eutelsat.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002601c33130$6febee30$10d4a8c0@mm.eutelsat.org> User-Agent: Mutt/1.5.4i X-Archive-Number: 200306/141 X-Sequence-Number: 9132 On Fri, Jun 13, 2003 at 00:17:38 +0200, Mendola Gaetano wrote: > "Henry House" 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. You still may not want to use timeofday even for long transactions. It depends on what the data really means to you.