Re: pgsql: Allow numeric scale to be negative or greater than precision. - Mailing list pgsql-committers

From Simon Riggs
Subject Re: pgsql: Allow numeric scale to be negative or greater than precision.
Date
Msg-id CANbhV-F_koHJbO9Qpm7uFb+--5jWOoku2eOTm19cvjw99zYfVQ@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Allow numeric scale to be negative or greater than precision.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
On Tue, 27 Jul 2021 at 17:22, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Simon Riggs <simon.riggs@enterprisedb.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/



pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Stabilize output of new regression test.
Next
From: Andrew Dunstan
Date:
Subject: Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows