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 05493530A9 for ; Sat, 13 Aug 2005 03:30:07 -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 79178-09 for ; Sat, 13 Aug 2005 06:30:04 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by svr1.postgresql.org (Postfix) with ESMTP id C48255309C for ; Sat, 13 Aug 2005 03:30:02 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i22so715489wra for ; Fri, 12 Aug 2005 23:30:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pzvX4YQ+lN8SI1/1CZOzpPLHq3689NMIYjjSfruxmCfNGiey520Q3xp2lySDeEcISxxvWRRvxYelYeBNm4sUqQLo/OMEDaozfQbptvPdPyxSpRwBESK/fmAfpCZ6TfpcfzrvXxIn1wq+hopOTsP9rLuHOqWfQHjZfrs5Kr5y+5Y= Received: by 10.54.143.7 with SMTP id q7mr2403493wrd; Fri, 12 Aug 2005 23:30:03 -0700 (PDT) Received: by 10.54.141.14 with HTTP; Fri, 12 Aug 2005 23:30:03 -0700 (PDT) Message-ID: <37ed240d0508122330105cbf1@mail.gmail.com> Date: Sat, 13 Aug 2005 16:30:03 +1000 From: Brendan Jurd To: Bruce Momjian Subject: Re: gettime() - a timeofday() alternative Cc: pgsql-hackers@postgresql.org In-Reply-To: <200508130234.j7D2Y8G01356@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <37ed240d05080623101d1094a1@mail.gmail.com> <200508130234.j7D2Y8G01356@candle.pha.pa.us> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.091 tagged_above=0 required=5 tests=[AWL=0.067, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/365 X-Sequence-Number: 71560 > We already have a TODO for this: >=20 > * Add transaction_timestamp(), statement_timestamp(), clock_times= tamp() > functionality I like the idea of having a function for statement start time. I think I'll incorporate it into my patch. The suggested naming convention in the TODO is good as well. I'd be inclined to make those *_timestamp() functions the core functions, and then make things like now() and gettime() shorthand equivalents.