Connaitre la date du dernier reboot de l'instance :
SQL :
SELECT pg_postmaster_start_time();
Savoir depuis quand l'instance tourne :
SQL :
select current_timestamp - pg_postmaster_start_time() as uptime;
Commande système
systemctl status postgres
postgresql - How can I get my server's uptime? - Database Administrators Stack Exchange