Created
January 23, 2021 19:44
-
-
Save StevenJL/96f844526c752b093f855838ccec1ea0 to your computer and use it in GitHub Desktop.
psql max connections
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
| /* See the number of max connections the server supports */ | |
| SHOW max_connections; | |
| /* | |
| The number of connections being used. | |
| This includes both client connections | |
| as well as connections to WAL sender | |
| processes (used in replication) | |
| */ | |
| SELECT COUNT(*) FROM | |
| pg_stat_activity; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment