Re: Postmaster Uptime

From: "Tim Knowles" <tim(at)ametco(dot)co(dot)uk>
To: "Lee Kindness" <lkindness(at)csl(dot)co(dot)uk>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postmaster Uptime
Date: 2002-09-25 09:53:17
Message-ID: NGBBIAKALHHLLCHKLBONAEPJCAAA.tim@ametco.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Cheers for the link, I'll give pl/sh a go too. I was just hoping someone
else may have done it already.

Best Regards,

Tim

-----Original Message-----
From: Lee Kindness [mailto:lkindness(at)csl(dot)co(dot)uk]
Sent: 25 September 2002 10:39
To: Tim Knowles
Cc: Lee Kindness; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Postmaster Uptime

Lee Kindness writes:
> As others have said it is certainly do-able, but you're going to have
> to do it! In the past you've got the uptime using ps - what you need
> to do is wrap this into a script and add it to a database as a
> function (using pg/tcl, pg/perlu, whatever). Or you could do it as a C
> function...

Actually pl/sh would be the obvious choice:

http://www.ca.postgresql.org/~petere/plsh.html

Lee.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ben Roberts 2002-09-25 09:56:14 Re: problem with maintenance script and missing pg_clog files with pg 7.2.1
Previous Message Lee Kindness 2002-09-25 09:39:02 Re: Postmaster Uptime