Commit 9665b5a
committed
Don't reset extra_float_digits
In PostgreSQL ≤11 the extra_float_digits parameter controlled how many
digits were used for floating point numbers. It was set here to ensure
people didn't accidentally needlessly lose precision (in 78a464e it was
set to 3. In 5941153 it was changed to 2 as people reported problems on
PostgreSQL ≤8.4, see #199).
Since PostgreSQL 12 it will always use maximum precision unless it's set
to ≤0. We only support PostgreSQL ≥14 now, so we can just remove it
here.
Ref: https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-FLOAT
Fixes #475
Fixes #1150
Fixes #11461 parent 5e89899 commit 9665b5a
2 files changed
+8
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
| |||
0 commit comments