Type | func
\pset tuples_only false
--- test numericlocale (not too interesting in C locale, but ...)
+-- test numericlocale (as best we can without control of psql's locale)
\pset format aligned
\pset expanded off
\pset numericlocale true
-select n, -n as m, n * 1000 + 111.1111 as x, '1e90'::float8 as f
+select n, -n as m, n * 111 as x, '1e90'::float8 as f
from generate_series(0,3) n;
- n | m | x | f
----+----+------------+-------
- 0 | 0 | 111.1111 | 1e+90
- 1 | -1 | 1,111.1111 | 1e+90
- 2 | -2 | 2,111.1111 | 1e+90
- 3 | -3 | 3,111.1111 | 1e+90
+ n | m | x | f
+---+----+-----+-------
+ 0 | 0 | 0 | 1e+90
+ 1 | -1 | 111 | 1e+90
+ 2 | -2 | 222 | 1e+90
+ 3 | -3 | 333 | 1e+90
(4 rows)
\pset numericlocale false
\df exp
\pset tuples_only false
--- test numericlocale (not too interesting in C locale, but ...)
+-- test numericlocale (as best we can without control of psql's locale)
\pset format aligned
\pset expanded off
\pset numericlocale true
-select n, -n as m, n * 1000 + 111.1111 as x, '1e90'::float8 as f
+select n, -n as m, n * 111 as x, '1e90'::float8 as f
from generate_series(0,3) n;
\pset numericlocale false