Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Check if PostgreSQL is using SSL
SELECT, 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 =;
-- 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
You can’t perform that action at this time.