| Lists: | pgsql-hackers |
|---|
| From: | Marko Tiikkaja <marko(at)joh(dot)to> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Add scale(numeric) |
| Date: | 2015-11-19 02:27:41 |
| Message-ID: | 564D339D.3080505@joh.to |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Lists: | pgsql-hackers |
Hi,
As suggested in 5643125E(dot)1030605(at)joh(dot)to, here's a patch for extracting
the scale out of a numeric.
This is 2016-01 CF material, but if someone wants to bas^H^H^Hsay nice
things in the meanwhile, feel free.
.m
| Attachment | Content-Type | Size |
|---|---|---|
| numeric_scale_v1.patch | text/plain | 4.4 KB |
| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
|---|---|
| To: | Marko Tiikkaja <marko(at)joh(dot)to> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Add scale(numeric) |
| Date: | 2015-12-23 05:06:43 |
| Message-ID: | CAFj8pRARY5bK+4Lu95vBvbLXeKWvBg2Hjzrs-ymLPSeYzQ_9pQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Lists: | pgsql-hackers |
Hi
2015-11-19 3:27 GMT+01:00 Marko Tiikkaja <marko(at)joh(dot)to>:
> Hi,
>
> As suggested in 5643125E(dot)1030605(at)joh(dot)to, here's a patch for extracting
> the scale out of a numeric.
>
> This is 2016-01 CF material, but if someone wants to bas^H^H^Hsay nice
> things in the meanwhile, feel free.
>
This patch is pretty trivial without any possible issues, but I miss a use
case of this feature.
Why it should be in Postgres?
Pavel
>
>
> .m
>
| From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
|---|---|
| To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
| Cc: | Marko Tiikkaja <marko(at)joh(dot)to>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Add scale(numeric) |
| Date: | 2016-01-05 22:04:30 |
| Message-ID: | 20160105220430.GA342103@alvherre.pgsql |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Lists: | pgsql-hackers |
Pavel Stehule wrote:
> Hi
>
> 2015-11-19 3:27 GMT+01:00 Marko Tiikkaja <marko(at)joh(dot)to>:
>
> > Hi,
> >
> > As suggested in 5643125E(dot)1030605(at)joh(dot)to, here's a patch for extracting
> > the scale out of a numeric.
> >
> > This is 2016-01 CF material, but if someone wants to bas^H^H^Hsay nice
> > things in the meanwhile, feel free.
> >
>
> This patch is pretty trivial without any possible issues, but I miss a use
> case of this feature.
>
> Why it should be in Postgres?
This was discussed in the original thread, and it seemed compelling
enough to me; there were no objections raised either. I couldn't find
any fault in the submitted patch, so pushed.
Thanks,
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services