Skip to content

Instantly share code, notes, and snippets.

@Swop
Created March 18, 2013 23:40
Show Gist options
  • Save Swop/5192053 to your computer and use it in GitHub Desktop.
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
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