From: Simon Riggs <simon.riggs@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Allow numeric scale to be negative or greater than precision.
Date: Tue, 27 Jul 2021 18:18:00 +0100
Message-ID: <CANbhV-F_koHJbO9Qpm7uFb+--5jWOoku2eOTm19cvjw99zYfVQ@mail.gmail.com> (raw)
In-Reply-To: <330928.1627402967@sss.pgh.pa.us>
References: <E1m80U9-0002Rl-Hv@gemulon.postgresql.org>
<CANbhV-HnsH6rFQF29y5NTgS5B7rivKBHdd3nspg_q2xT9X2ESg@mail.gmail.com>
<330928.1627402967@sss.pgh.pa.us>
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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: simon.riggs@enterprisedb.com, tgl@sss.pgh.pa.us, dean.a.rasheed@gmail.com
Subject: Re: pgsql: Allow numeric scale to be negative or greater than precision.
In-Reply-To: <CANbhV-F_koHJbO9Qpm7uFb+--5jWOoku2eOTm19cvjw99zYfVQ@mail.gmail.com>
References: <E1m80U9-0002Rl-Hv@gemulon.postgresql.org> <CANbhV-HnsH6rFQF29y5NTgS5B7rivKBHdd3nspg_q2xT9X2ESg@mail.gmail.com> <330928.1627402967@sss.pgh.pa.us> <CANbhV-F_koHJbO9Qpm7uFb+--5jWOoku2eOTm19cvjw99zYfVQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox