Re: Postmaster Uptime

From: Robert Treat <rtreat(at)webmd(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tim Knowles <tim(at)ametco(dot)co(dot)uk>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postmaster Uptime
Date: 2002-09-24 20:14:12
Message-ID: 1032898457.737.69.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Could we store this as an environment variable that gets set once
postmaster leaves "start up" mode?

Robert Treat

On Tue, 2002-09-24 at 10:47, Bruce Momjian wrote:
> Tim Knowles wrote:
> >
> > Hi All,
> >
> > Is their any way to find out the uptime of the postmaster via a SQL
> > function?
>
> No, not really. You can do a 'ps' on the postmaster pid and run that
> somehow from pltcl.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania 19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2002-09-24 20:52:11 Re: rotatelog / logrotate with PostgreSQL
Previous Message Thomas Beutin 2002-09-24 19:01:09 Re: rotatelog / logrotate with PostgreSQL