pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add functions min_scale(numeric) and trim_scale(numeric).
Date: Mon, 06 Jan 2020 17:14:25 +0000
Message-ID: <E1ioVxR-0001rT-9G@gemulon.postgresql.org> (raw)

Add functions min_scale(numeric) and trim_scale(numeric).

These allow better control of trailing zeroes in numeric values.

Pavel Stehule, based on an old proposal of Marko Tiikkaja's;
review by Karl Pinc

Discussion: https://postgr.es/m/CAFj8pRDjs-navGASeF0Wk74N36YGFJ+v=Ok9_knRa7vDc-qugg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/20d6225d1656102534a73d9675bc531ff0e5203b

Modified Files
--------------
doc/src/sgml/func.sgml                |  32 ++++++++-
src/backend/utils/adt/numeric.c       |  91 ++++++++++++++++++++++++
src/include/catalog/catversion.h      |   2 +-
src/include/catalog/pg_proc.dat       |   7 ++
src/test/regress/expected/numeric.out | 126 ++++++++++++++++++++++++++++++++++
src/test/regress/sql/numeric.sql      |  30 ++++++++
6 files changed, 285 insertions(+), 3 deletions(-)



Message-ID: <E1ioVxR-0001rT-9G@gemulon.postgresql.org>
Permalink:  ../E1ioVxR-0001rT-9G@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ioVxR-0001rT-9G@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add functions min_scale(numeric) and trim_scale(numeric).
  In-Reply-To: <E1ioVxR-0001rT-9G@gemulon.postgresql.org>
  References: <E1ioVxR-0001rT-9G@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