Last active time for a database - Mailing list pgsql-general

From Jeff Janes
Subject Last active time for a database
Date
Msg-id CAMkU=1yge8Ts8+k0DD87h+tUHXFDTPXxcyb_RRCco8WroYZ3JQ@mail.gmail.com
Whole thread Raw
Responses Re: Last active time for a database  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-general
Is there a way for a superuser to find the last time a database had an active user connection? (While being logged into a different database in the same instance, of course).

The context here is looking for looking for automated integration testing databases that have been leaked due to bugs/crashes in the testing framework.

Yes, I can mine the server log files, but that is really scraping the bottom of the barrel.

Thanks

Jeff

pgsql-general by date:

Previous
From: klo uo
Date:
Subject: Re: How to restore backup database
Next
From: Andreas Brandl
Date:
Subject: Re: Querying a time range across multiple partitions