Posgres: How long the database was up

 SELECT current_timestamp - pg_postmaster_start_time() AS up_time;

select pg_postmaster_start_time ()



pg_postmaster_start_time () → timestamp with time zone

Returns the time when the server started.


2025-01-17 16:57:52.622095+00


UTC to CST Time Converter


https://www.utctime.net/utc-to-cst-converter

Comments

Popular posts from this blog

Oracle: To clean up WRI$_ADV_OBJECTS