Re: proposal: minscale, rtrim, btrim functions for numeric
Karl O. Pinc <kop@meme.com>
From: "Karl O. Pinc" <kop@meme.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers
<pgsql-hackers@lists.postgresql.org>, Marko Tiikkaja <marko@joh.to>, Dean
Rasheed <dean.a.rasheed@gmail.com>, Alvaro Herrera
<alvherre@2ndquadrant.com>, Robert Haas <robertmhaas@gmail.com>
Date: 2019-12-10T12:56:33Z
Lists: pgsql-hackers
On Tue, 10 Dec 2019 07:11:59 +0100
Pavel Stehule <pavel.stehule@gmail.com> wrote:
> út 10. 12. 2019 v 0:03 odesílatel Karl O. Pinc <kop@meme.com> napsal:
> > I also wonder whether all the trim_scale() tests
> > are now necessary, but not enough to make any suggestions.
> I don't think so tests should be minimalistic - there can be some
> redundancy to coverage some less probable size effects of some future
> changes. More - there is a small symmetry with min_scale tests - and
> third argument - some times I use tests (result part) as
> "documentation".
Fine with me.
Tests pass against HEAD. Docs build and look good.
Patch looks good to me.
I'm marking it ready for a committer.
Thanks for the work.
Regards,
Karl <kop@meme.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
Commits
-
Add functions min_scale(numeric) and trim_scale(numeric).
- 20d6225d1656 13.0 landed