X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 32A8E9DC941 for ; Mon, 20 Mar 2006 19:02:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10483-01 for ; Mon, 20 Mar 2006 19:02:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from candle.pha.pa.us (candle.pha.pa.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id B3BFD9DC80E for ; Mon, 20 Mar 2006 19:02:04 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id k2KN26J07336; Mon, 20 Mar 2006 18:02:06 -0500 (EST) From: Bruce Momjian Message-Id: <200603202302.k2KN26J07336@candle.pha.pa.us> Subject: Re: Additional current timestamp values In-Reply-To: <200603210000.07477.peter_e@gmx.net> To: Peter Eisentraut Date: Mon, 20 Mar 2006 18:02:06 -0500 (EST) CC: pgsql-patches@postgresql.org, Brendan Jurd X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.462 required=5 tests=[AWL=-0.038, RAZOR2_CHECK=0.5] X-Spam-Score: 0.462 X-Spam-Level: X-Archive-Number: 200603/213 X-Sequence-Number: 19217 Peter Eisentraut wrote: > Bruce Momjian wrote: > > Rather than applying the above patch, I have implemented this TODO > > with the attached patch: > > > > * Add transaction_timestamp(), statement_timestamp(), > > clock_timestamp() functionality > > The most common complaint that I recall is that current_timestamp > returns the transaction timestamp rather than the statement timestamp, > which is what many expect. How does your patch address that? No, we believe the standard requires it. > Do we really need clock_timestamp? Yes, because timeofday() returns a unix text string. Some people do want a wallclock current timestamp. -- Bruce Momjian http://candle.pha.pa.us SRA OSS, Inc. http://www.sraoss.com + If your life is a hard drive, Christ can be your backup. +