Open
Description
When querying large double precision values they appear to be rounded.
e.g. the following values are all returned as '2.09999999769e+15'
2099999997689999
2099999997690000
2099999997690001
I believe that is because extra_float_digits should be set to 3 (ideally at protocol level when a connection to the DB is opened):
http://www.postgresql.org/docs/9.3/static/runtime-config-client.html
This appears to be how the PostgreSQL JDBC driver works:
https://github.com/pgjdbc/pgjdbc/search?utf8=%E2%9C%93&q=extra_float_digits
PostgreSQL JDBC used to do it at SQL level. This isn't ideal, but I think preferable to getting incorrect values.
pgjdbc/pgjdbc#168
http://stackoverflow.com/questions/24680696/set-extra-float-digits-3-in-postgresql