Created
August 20, 2020 14:53
-
-
Save dserodio/9571f1d993a57dc97ac013bed8ea8265 to your computer and use it in GitHub Desktop.
Check if PostgreSQL is using SSL
This file contains hidden or 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