Archive

Posts Tagged ‘connections’

How to Restart PostgreSQL While Developing a Rails App

January 13th, 2012 No comments

While developing a Rails apps using PostgreSQL (unlike MySQL) I often run out of db connections and see errors like “FATAL:  remaining connection slots are reserved for non-replication superuser connections” and when I do, my Rails app stops working. Restarting Postgres fixing the problem, but it was harder to restart postgres that I expected. Here’s how I do it. Read more…