Created
December 19, 2018 21:16
-
-
Save altitdb/2032edfb1ba2fbc527e336aa420d07c1 to your computer and use it in GitHub Desktop.
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 * from | |
(select count(*) used from pg_stat_activity) q1, | |
(select setting::int res_for_super from pg_settings where name=$$superuser_reserved_connections$$) q2, | |
(select setting::int max_conn from pg_settings where name=$$max_connections$$) q3; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment