> Is there a table/view available from where I can check what time the cluster was started?
> Need this to calculate the uptime of the cluster.
In PostgreSQL 8.1 and later you can run these queries to get the start
time and uptime:
SELECT pg_postmaster_start_time();
SELECT now() - pg_postmaster_start_time();
--
Michael Fuhr
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
No comments:
Post a Comment