Re: [HACKERS] How to determine date / time of last postmaster restart

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, adey11(at)gmail(dot)com, pgsql-admin(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] How to determine date / time of last postmaster restart
Date: 2005-09-08 17:18:23
Message-ID: 20050908171823.GB28361@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

On Wed, Sep 07, 2005 at 09:22:55PM -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> 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(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jim C. Nasby 2005-09-08 17:19:44 Re: Linking Oracle DB from postgresql
Previous Message Tom Lane 2005-09-08 16:47:19 Re: Please help - libpq API

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2005-09-08 17:19:59 Re: pg_config/share_dir
Previous Message Peter Eisentraut 2005-09-08 17:16:41 Re: Attention PL authors: want to be listed in template table?