An exception is thrown on client.query() if the connection was closed due to stream error. See https://github.com/brianc/node-postgres/pull/537#issuecomment-37674319 I guess an event should be raised instead...
An exception is thrown on client.query() if the connection was closed due to stream error. See #537 (comment)
I guess an event should be raised instead...