Last active
September 29, 2020 15:12
-
-
Save beaufour/c3454dc65f8b1e362c875107bc7f3707 to your computer and use it in GitHub Desktop.
Postgresql: List connections and their SSL status
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 pg_stat_ssl.pid, client_addr, datname, usename, application_name, ssl | |
from pg_stat_activity | |
join pg_stat_ssl | |
on pg_stat_activity.pid = pg_stat_ssl.pid; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment