| From: | Simon Riggs <simon(dot)riggs(at)enterprisedb(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: pgsql: Allow numeric scale to be negative or greater than precision. |
| Date: | 2021-07-27 17:18:00 |
| Message-ID: | CANbhV-F_koHJbO9Qpm7uFb+--5jWOoku2eOTm19cvjw99zYfVQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
On Tue, 27 Jul 2021 at 17:22, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Simon Riggs <simon(dot)riggs(at)enterprisedb(dot)com> writes:
> > This is for migration?
>
> Yeah, compatibility with some other DBMSes that allow this.
>
> > Or does it mean very small values now occupy less space since we store
> > fewer zeros?
>
> It won't affect space consumption at all, as NUMERIC has never stored
> leading or trailing zeroes. (Modulo the fact that "zero" here means
> a base-NDIGIT digit.)
Thanks, just trying to understand what that was for.
--
Simon Riggs http://www.EnterpriseDB.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2021-07-27 18:24:12 | Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows |
| Previous Message | Tom Lane | 2021-07-27 16:49:56 | pgsql: Stabilize output of new regression test. |