From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Ron Ben <ronb910(at)walla(dot)co(dot)il>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Nice to have features: Percentage function |
Date: | 2017-04-16 15:14:46 |
Message-ID: | 38b64b3e-6f6e-918b-9399-24d83aed4dc0@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 04/15/2017 10:47 PM, Ron Ben wrote:
> Hi,
> I'm always finiding myself writing many varations of functions to
> calculate percentage.
> I think it would be nice if postgresql would have build in functions for
> that.
If you have already written the functions, why not just use them?
To make them available across a cluster install them in a template
database(www.postgresql.org/docs/9.6/static/manage-ag-templatedbs.html)
and create your new databases using that. The default template is the
template1 database, but you can create your own.
> I think the major functionality is something like the 3 ooptions here:
> https://percentagecalculator.net/
>
> It may help to keep code simple and clean and it seem like something
> simple to implement.
>
> If you think it's a good idea it would be nice if someone can implement
> this.
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2017-04-16 16:23:15 | Re: Nice to have features: Percentage function |
Previous Message | Ron Ben | 2017-04-16 05:47:38 | Nice to have features: Percentage function |