Created
January 18, 2020 03:13
-
-
Save ethagnawl/b92ee59de3ad7bc8dda401023f4031cc to your computer and use it in GitHub Desktop.
view postgres clients
This file contains hidden or 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 pid as process_id, | |
usename as username, | |
datname as database_name, | |
client_addr as client_address, | |
application_name, | |
backend_start, | |
state, | |
state_change | |
from pg_stat_activity; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment