oakist
oakist

Reputation: 161

How to find the time postgresql was started via a query

I'm trying to find the start time of a postgres DB, preferably via a query of some system_table (rather than parsing log files). Is it possible?

Upvotes: 1

Views: 67

Answers (1)

lreeder
lreeder

Reputation: 12206

SELECT pg_postmaster_start_time();

Upvotes: 1

Related Questions