Created
August 20, 2020 14:53
Check if PostgreSQL is using SSL
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 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