EllisLab/CodeIgniter — pull request #1601 by rwillert (2012-07-10 11:08:23+00:00)
Title: Reconnect to PostgreSQL database if connection droped.

This change will fix the error message "server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.".
This error shows up on restarting the database server without restarting the web server.