I have a column latitude of type real in my Postgres table.
Looking at it in Postico, it has the value of 57.70887.
But selecting it from psql or via code, the value returned is rounded to 4 decimal places:
# SELECT latitude from categories where id = 4;
latitude
----------
57.7089
(1 row)
What am I doing wrong?
Postgres 9.6.
SET extra_float_digits = 3;➜select ..➜57.7088699. I'll accept it if you post it as an answer :)postgisextension for storing points. I might seem in the beginning a bit unnecessary, but when spatial queries are involved, it can absolutely save you a lot of trouble. Cheers :-)