Last active
December 22, 2020 09:38
-
-
Save malkab/3028a6947a8aeec7a1924ca6f20d2a74 to your computer and use it in GitHub Desktop.
PostgreSQL - General Management Recipes
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
/** | |
Check number of connections to the DB. | |
*/ | |
SELECT count(distinct(numbackends)) FROM pg_stat_database; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment