Reimplement NUMERIC datatype using base-10000 arithmetic; also improve
Tom Lane <tgl@sss.pgh.pa.us>
Reimplement NUMERIC datatype using base-10000 arithmetic; also improve some of the algorithms for higher functions. I see about a factor of ten speedup on the 'numeric' regression test, but it's unlikely that that test is representative of real-world applications. initdb forced due to change of on-disk representation for NUMERIC.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/release.sgml | modified | +2 −1 |
| src/backend/utils/adt/numeric.c | modified | +1546 −911 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/utils/numeric.h | modified | +16 −22 |
| src/test/regress/expected/aggregates.out | modified | +9 −9 |
| src/test/regress/expected/numeric.out | modified | +3 −3 |