X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 92D42D83BC; Fri, 23 Sep 2005 00:06:04 -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 11199-07; Fri, 23 Sep 2005 03:06:02 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 1B6DAD8144; Fri, 23 Sep 2005 00:06:01 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j8N35nj26410; Thu, 22 Sep 2005 23:05:49 -0400 (EDT) From: Bruce Momjian Message-Id: <200509230305.j8N35nj26410@candle.pha.pa.us> Subject: Re: [HACKERS] How to determine date / time of last postmaster In-Reply-To: <20050907192953.GJ5953@surnet.cl> To: Alvaro Herrera Date: Thu, 22 Sep 2005 23:05:49 -0400 (EDT) Cc: "Jim C. Nasby" , Tom Lane , adey11@gmail.com, pgsql-admin@postgresql.org, pgsql-hackers@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 required=5 tests=[AWL=0.010] X-Spam-Level: X-Archive-Number: 200509/249 X-Sequence-Number: 18986 Alvaro Herrera wrote: > On Wed, Sep 07, 2005 at 12:38:44AM -0500, Jim C. Nasby wrote: > > On Tue, Sep 06, 2005 at 08:22:34PM -0400, Tom Lane wrote: > > > PG 8.1 will have a function to return postmaster start time, but not > > > database reset time. I wonder if this is misdefined --- if you are > > > trying to measure database uptime, the last reset would be more > > > appropriate to track. > > > > Is it too late to add a function that returns last reset time as well? > > That would cover all bases and force some less confusing naming. > > This would be one more vote in favour of initdb before next beta. > (pltemplate being the other one.) We should set a threshold in order to > be able to decide ... Added to TODO: * Add function to report the time of the most recent server reload -- 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