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
https://www.utctime.net/utc-to-cst-converter
Comments
Post a Comment