brianc/node-postgres — pull request #106 by PSUdaemon (2012-03-13 23:23:46+00:00)
Title: Flush after sending data or commands

This turns back on the write ev hooks after you send data or commands so that they are certain to be flushed. We were seeing a problem where we would get a timeout from node-postgres but postgres would be waiting in the PARSE phase for the connection. It wasn't getting the "end of query" marker from the client because it wasn't getting flushed. We tested this patch and it seems to fix the problem.