pgsql: Expose internal function for converting int64 to numeric

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Expose internal function for converting int64 to numeric
Date: 2020-09-09 18:41:37
Message-ID: E1kG52H-0004Ku-1x@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/flat/42b73d2d-da12-ba9f-570a-420e0cce19d9(at)phystech(dot)edu

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0aa8f764088ea0f36620ae2955fa6c54ec736c46

Modified Files
--------------
contrib/btree_gist/btree_numeric.c | 2 +-
contrib/jsonb_plperl/jsonb_plperl.c | 4 +-
src/backend/utils/adt/cash.c | 7 +-
src/backend/utils/adt/dbsize.c | 21 ++----
src/backend/utils/adt/formatting.c | 19 ++----
src/backend/utils/adt/jsonpath_exec.c | 11 +---
src/backend/utils/adt/numeric.c | 116 +++++++++-------------------------
src/include/utils/numeric.h | 2 +
8 files changed, 50 insertions(+), 132 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-09-09 19:33:02 pgsql: Make archiver's SIGQUIT handler exit via _exit().
Previous Message Tom Lane 2020-09-09 16:01:10 pgsql: Minor fixes in docs and error messages.