This patch adds some missing functions for float8 math operations,
Bruce Momjian <bruce@momjian.us>
This patch adds some missing functions for float8 math operations, specifically ceil(), floor(), and sign(). There may be other functions that need to be added, but this is a start. I've included some simple regression tests. Neil Conway
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/float.c | modified | +54 −11 |
| src/backend/utils/adt/numeric.c | modified | +8 −2 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +7 −1 |
| src/include/utils/builtins.h | modified | +4 −1 |
| src/test/regress/expected/float8.out | modified | +34 −1 |
| src/test/regress/sql/float8.sql | modified | +10 −1 |