From: Adrian Klaver <adrian.klaver@aklaver.com>
To: pavan95 <pavan.postgresdba@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: How to get postmaster shut down time in postgres?
Date: Mon, 4 Jun 2018 06:22:54 -0700
Message-ID: <4462191d-e3ee-bec1-3b69-e0f3c13f9c04@aklaver.com> (raw)
In-Reply-To: <1528118250600-0.post@n3.nabble.com>
References: <1528118250600-0.post@n3.nabble.com>
On 06/04/2018 06:17 AM, pavan95 wrote:
> Hi all,
>
> Is there any way to get postmaster(postgres database) shutdown time? Please
> help!!
Assuming you have the Postgres logging turned on it will be in the log:
The log when the server was shutdown:
2018-06-03 21:11:41.739 PDT-0LOG: database system is shut down
The log when it was next started up:
2018-06-04 05:46:33.118 PDT-0LOG: database system was shut down at
2018-06-03 21:11:41 PDT
>
> Thanks in Advance.
>
>
> Regards,
> Pavan
>
>
>
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, pavan.postgresdba@gmail.com
Subject: Re: How to get postmaster shut down time in postgres?
In-Reply-To: <4462191d-e3ee-bec1-3b69-e0f3c13f9c04@aklaver.com>
References: <1528118250600-0.post@n3.nabble.com> <4462191d-e3ee-bec1-3b69-e0f3c13f9c04@aklaver.com>
* 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