Expose internal function for converting int64 to numeric
Peter Eisentraut <peter@eisentraut.org>
Expose internal function for converting int64 to numeric Existing callers had to take complicated detours via DirectFunctionCall1(). This simplifies a lot of code. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/42b73d2d-da12-ba9f-570a-420e0cce19d9@phystech.edu
Files
| Path | Change | +/− |
|---|---|---|
| contrib/btree_gist/btree_numeric.c | modified | +1 −1 |
| contrib/jsonb_plperl/jsonb_plperl.c | modified | +1 −3 |
| src/backend/utils/adt/cash.c | modified | +3 −4 |
| src/backend/utils/adt/dbsize.c | modified | +5 −16 |
| src/backend/utils/adt/formatting.c | modified | +6 −13 |
| src/backend/utils/adt/jsonpath_exec.c | modified | +3 −8 |
| src/backend/utils/adt/numeric.c | modified | +29 −87 |
| src/include/utils/numeric.h | modified | +2 −0 |
Discussion
- Since '2001-09-09 01:46:40'::timestamp microseconds are lost when extracting epoch 47 messages · 2019-11-30 → 2021-06-08