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 BA9EED7C2A; Wed, 7 Sep 2005 02:38:46 -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 06745-10; Wed, 7 Sep 2005 05:38:44 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id 097CAD77E0; Wed, 7 Sep 2005 02:38:44 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id 2F347152A6; Wed, 7 Sep 2005 00:38:45 -0500 (CDT) Date: Wed, 7 Sep 2005 00:38:44 -0500 From: "Jim C. Nasby" To: Tom Lane Cc: adey11@gmail.com, pgsql-admin@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] How to determine date / time of last postmaster restart Message-ID: <20050907053844.GC60481@pervasive.com> References: <1c66bda805090616596a199871@mail.gmail.com> <22041.1126052554@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22041.1126052554@sss.pgh.pa.us> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200509/54 X-Sequence-Number: 18791 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. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461