Skip to content

Instantly share code, notes, and snippets.

@beaufour
Last active September 29, 2020 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beaufour/c3454dc65f8b1e362c875107bc7f3707 to your computer and use it in GitHub Desktop.
Save beaufour/c3454dc65f8b1e362c875107bc7f3707 to your computer and use it in GitHub Desktop.
Postgresql: List connections and their SSL status
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