Re: proposal: minscale, rtrim, btrim functions for numeric
Pavel Stehule <pavel.stehule@gmail.com>
From: Pavel Stehule <pavel.stehule@gmail.com>
To: "Karl O. Pinc" <kop@meme.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-10T13:47:03Z
Lists: pgsql-hackers
út 10. 12. 2019 v 13:56 odesílatel Karl O. Pinc <kop@meme.com> napsal: > 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. > Thank you for review Pavel > 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