brianc/node-postgres — pull request #301 by brianc (2013-03-11 20:26:35+00:00)
Title: V1.0

This pull request introduces a few breaking changes.

1) Floats will be returned from node-postgres as JavaScript __strings__ instead of being parsed.

Using `parseFloat` can lead to very tricky and hard to catch rounding & conversion errors within JavaScript. Data loss is the last thing node-postgres should do. If you'd like you can override the float type parsers yourself to either use `parseFloat` like v0.x or another JavaScript large number library which is better suited to handle larger numeric values.

2) The client pool callback now requires 3 parameters as outlined in the documentation here:

https://github.com/brianc/node-postgres/wiki/pg

__if you install pg@1.0 or greater and you do not call the `done()` callback in pg.connect you will very quickly exhaust the client pool__

3) Client#pauseDrain() and Client#resumeDrain() are removed because the pool will no longer automatically return clients when they emit the `drain` event. Please note the `drain` event will still be emitted, that did not change. Only now node-postgres itself will not respond to it. Since it doesn't respond to it there's no reason you need to stop it from emitting.