PG::ConnectionBad causes site to temporarily crash

If you have the spare disk add swap to give yourself some temporary breathing space.