brianc/node-postgres — pull request #101 by w1nk (2012-03-01 21:17:18+00:00)
Title: Native driver and database connectivity loss

2 line patch to detach libev from read/write events and emit an error if PQconsumeInput returns 0 as that is indicative of an error. Allows the native driver to detect connectivity loss by catching error.