X-Original-To: pgsql-patches-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BD3CE52E77 for ; Sat, 13 Aug 2005 00:04:32 -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 49267-08 for ; Sat, 13 Aug 2005 03:04:30 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 17581529D7 for ; Sat, 13 Aug 2005 00:04:29 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j7D2a1s01765; Fri, 12 Aug 2005 22:36:01 -0400 (EDT) From: Bruce Momjian Message-Id: <200508130236.j7D2a1s01765@candle.pha.pa.us> Subject: Re: gettime() - a timeofday() alternative In-Reply-To: <37ed240d05080801166be4bd39@mail.gmail.com> To: Brendan Jurd Date: Fri, 12 Aug 2005 22:36:01 -0400 (EDT) Cc: pgsql-patches@postgresql.org 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, hits=0.01 tagged_above=0 required=5 tests=[AWL=0.010] X-Spam-Level: X-Archive-Number: 200508/208 X-Sequence-Number: 17155 This has been saved for the 8.2 release: http://momjian.postgresql.org/cgi-bin/pgpatches_hold --------------------------------------------------------------------------- Brendan Jurd wrote: > On 8/7/05, Brendan Jurd wrote: > > Hi all, > > > > I propose to add an internal function gettime() that transparently > > returns the current system time, as a timestamptz with maximum > > precision. > > > > Here's the patch. > > The changes to pg_proc.h, timestamp.h and timestamp.c are trivial. > The changes to func.sgml are more comprehensive; I've split the > section on Current Date/Time into two subsections, one that explains > the transaction time functions and one for the system time functions. > > -- > BJ [ Attachment, skipping... ] [ Attachment, skipping... ] [ Attachment, skipping... ] [ Attachment, skipping... ] > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073