zabbix/files/postgresql/pgsql.uptime.sql

2 lines
67 B
SQL

SELECT date_part('epoch', now() - pg_postmaster_start_time())::int