Find startup time and uptime postgres
-- Uptime of server
postgresql configurationintermediate
by PostgreSQL
14 views
-- Uptime of server
1234567891011121314
-- Uptime of server
postgres#
SELECT now() - pg_postmaster_start_time() "uptime";
uptime
------------------------
9 days 04:54:56.774981
(1 row)
-- Server startup time:
postgres#
SELECT pg_postmaster_start_time();
pg_postmaster_start_time
----------------------------------
26-SEP-20 11:13:08.283105 +03:00
(1 row)Please to add comments
No comments yet. Be the first to comment!