pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: adey11@gmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: How to determine date / time of last postmaster restart
Date: Wed, 7 Sep 2005 20:01:00 +0200
Message-ID: <200509072001.01559.peter_e@gmx.net> (raw)
In-Reply-To: <1c66bda805090616596a199871@mail.gmail.com>
References: <1c66bda805090616596a199871@mail.gmail.com>

adey wrote:
> Please let me know if there is a way to determine when the Postmaster
> was last restarted?

If you have configured your server log to contain timestamps, that is 
your best bet to look.  In any case, the server log will tell when the 
last shutdown was, so you can at least narrow down the time frame.  You 
can also use pg_controldata to check the time of last change to 
pg_control (which is changed when the server starts).

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/



view thread (8+ messages)  latest in thread

Message-ID: <200509072001.01559.peter_e@gmx.net>
Permalink:  ../200509072001.01559.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200509072001.01559.peter_e@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter_e@gmx.net, adey11@gmail.com
  Subject: Re: How to determine date / time of last postmaster restart
  In-Reply-To: <200509072001.01559.peter_e@gmx.net>
  References: <1c66bda805090616596a199871@mail.gmail.com> <200509072001.01559.peter_e@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox