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:55:20 -0700
Message-ID: <cb7b2cc4-6d94-df86-74fe-462b187dd8f1@aklaver.com> (raw)
In-Reply-To: <1528119860207-0.post@n3.nabble.com>
References: <1528118250600-0.post@n3.nabble.com>
<CANu8FiyrGKbNxd39rh8xJ1B_o+61jO6B5K1xSbVWK6f9WdoiJg@mail.gmail.com>
<1528119860207-0.post@n3.nabble.com>
On 06/04/2018 06:44 AM, pavan95 wrote:
> Hi Adrian/Melvin,
>
> Thanks for your prompt replies. Yeah, I'm aware of that way.
>
> But my requirement is to get the server shutdown time whenever that event
> occurs and insert into a table dynamically!! Is it possible?
A quick scan shows no built in function to do this. Looks like you will
need to parse the log file.
>
> The main reason for my requirement is to find the time swing between server
> stop and start.
>
> 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: <cb7b2cc4-6d94-df86-74fe-462b187dd8f1@aklaver.com>
References: <1528118250600-0.post@n3.nabble.com> <CANu8FiyrGKbNxd39rh8xJ1B_o+61jO6B5K1xSbVWK6f9WdoiJg@mail.gmail.com> <1528119860207-0.post@n3.nabble.com> <cb7b2cc4-6d94-df86-74fe-462b187dd8f1@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