X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CE49052A06 for ; Sat, 13 Aug 2005 18:37:16 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 81256-09 for ; Sat, 13 Aug 2005 21:37:12 +0000 (GMT) Received: from mail.envyfinancial.com (unknown [206.248.142.186]) by svr1.postgresql.org (Postfix) with ESMTP id 43A185292F for ; Sat, 13 Aug 2005 18:37:11 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.envyfinancial.com (Postfix) with ESMTP id 1CE701BD8C; Sat, 13 Aug 2005 17:35:39 -0400 (EDT) Received: from mail.envyfinancial.com ([127.0.0.1]) by localhost (mark.mielke.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30092-08; Sat, 13 Aug 2005 17:35:38 -0400 (EDT) Received: by mail.envyfinancial.com (Postfix, from userid 500) id CC59A1BDF0; Sat, 13 Aug 2005 17:35:38 -0400 (EDT) Date: Sat, 13 Aug 2005 17:35:38 -0400 From: mark@mark.mielke.cc To: Brendan Jurd Cc: Bruce Momjian , pgsql-hackers@postgresql.org Subject: Re: gettime() - a timeofday() alternative Message-ID: <20050813213538.GA30952@mark.mielke.cc> References: <37ed240d0508122330105cbf1@mail.gmail.com> <200508131435.j7DEZU013689@candle.pha.pa.us> <37ed240d05081312511423cb58@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <37ed240d05081312511423cb58@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: amavisd-new at mail.envyfinancial.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.178 tagged_above=0 required=5 tests=[NO_REAL_NAME=0.178] X-Spam-Level: X-Archive-Number: 200508/396 X-Sequence-Number: 71591 On Sun, Aug 14, 2005 at 05:51:16AM +1000, Brendan Jurd wrote: > Regarding the statement_timestamp() ... if the entire query path is > parser -> rewriter -> planner/optimiser -> executor, what point in > that path would be considered the true start of the "statement"? I > would assume that it's right at the beginning, when it is first handed > to the parser, but that's a very naive assumption. The latest time before any index or table has been accessed to derive results? For prepared statements, for example, the time the statement was prepared doesn't seem useful to me. Cheers, mark -- mark@mielke.cc / markm@ncf.ca / markm@nortel.com __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/