Skip to content

Instantly share code, notes, and snippets.

@dserodio
Created August 20, 2020 14:53
Check if PostgreSQL is using SSL
SELECT s.pid, s.ssl, s.version, a.client_addr, a.usename, a.datname, a.query
FROM pg_stat_ssl AS s
JOIN pg_stat_activity AS a ON a.pid = s.pid;
-- You can see `t|f` in `ssl` field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment