Created
March 18, 2013 23:40
-
-
Save Swop/5192053 to your computer and use it in GitHub Desktop.
Increase shmmax on MacOS X to enable more concurrent clients on Postgres.app
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
To increase temporary (during the current session): | |
sudo sysctl -w kern.sysv.shmmax=12582912 | |
sudo sysctl -w kern.sysv.shmall=12582912 | |
To enable it forever: | |
sudo vim /etc/sysctl.conf | |
kern.sysv.shmall=12582912 | |
kern.sysv.shmmax=12582912 | |
Edit the `max_connections` var in the `~/Library/Application\ Support/Postgres/var/postgresql.conf` file, and restart Postgres.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment