Created
December 9, 2019 17:08
-
-
Save ralexx/784fa2cf72cc47a742d39105bb85b220 to your computer and use it in GitHub Desktop.
Status information on active/idle Postgresql connections
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 | |
datid, | |
datname, | |
pid, | |
backend_type, | |
application_name, | |
--xact_start, | |
query_start, | |
state_change, | |
--wait_event_type, | |
wait_event, | |
state, | |
query, | |
client_addr, | |
--client_hostname, | |
client_port, | |
backend_start, | |
--backend_xid, | |
backend_xmin, | |
usesysid, | |
usename | |
FROM | |
pg_catalog.pg_stat_activity; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment