Created
October 25, 2018 07:18
-
-
Save greenpeas/e4a36241961369957bbdede058235574 to your computer and use it in GitHub Desktop.
postgresql process list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.usename, a.pid, a.application_name, a.backend_start, (NOW()::timestamp - a.backend_start::timestamp) as dif, a.state, a.query | |
from pg_stat_activity a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment