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 735C7D7D3D; Thu, 8 Sep 2005 14:18:30 -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 52780-10; Thu, 8 Sep 2005 17:18:25 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id A765FD6F0D; Thu, 8 Sep 2005 14:18:24 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id E87B01527C; Thu, 8 Sep 2005 12:18:23 -0500 (CDT) Date: Thu, 8 Sep 2005 12:18:23 -0500 From: "Jim C. Nasby" To: Tom Lane Cc: Alvaro Herrera , 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: <20050908171823.GB28361@pervasive.com> References: <1c66bda805090616596a199871@mail.gmail.com> <22041.1126052554@sss.pgh.pa.us> <20050907053844.GC60481@pervasive.com> <20050907192953.GJ5953@surnet.cl> <2022.1126142575@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2022.1126142575@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.007 required=5 tests=[AWL=0.007] X-Spam-Level: X-Archive-Number: 200509/87 X-Sequence-Number: 18824 On Wed, Sep 07, 2005 at 09:22:55PM -0400, Tom Lane wrote: > Alvaro Herrera writes: > > On Wed, Sep 07, 2005 at 12:38:44AM -0500, Jim C. Nasby wrote: > >> 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 ... > > It looks like we'll be initdb'ing to add pltemplate, so if someone wants > to submit a proposed patch for this ... I might be able to do some of it; where would I need to capture reload time? Also, I'm thinking of leaving pg_postmaster_start_time as-is and adding pg_postmaster_reload_time. Thoughts? For reference, here's the original commit: http://archives.postgresql.org/pgsql-committers/2005-06/msg00181.php -- 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