pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Expose internal function for converting int64 to numeric
Date: Wed, 09 Sep 2020 18:41:37 +0000
Message-ID: <E1kG52H-0004Ku-1x@gemulon.postgresql.org> (raw)

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

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(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1kG52H-0004Ku-1x@gemulon.postgresql.org>
Permalink:  ../E1kG52H-0004Ku-1x@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kG52H-0004Ku-1x@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Expose internal function for converting int64 to numeric
  In-Reply-To: <E1kG52H-0004Ku-1x@gemulon.postgresql.org>
  References: <E1kG52H-0004Ku-1x@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox