pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon.riggs@enterprisedb.com>
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 12:22:47 -0400
Message-ID: <330928.1627402967@sss.pgh.pa.us> (raw)
In-Reply-To: <CANbhV-HnsH6rFQF29y5NTgS5B7rivKBHdd3nspg_q2xT9X2ESg@mail.gmail.com>
References: <E1m80U9-0002Rl-Hv@gemulon.postgresql.org>
	<CANbhV-HnsH6rFQF29y5NTgS5B7rivKBHdd3nspg_q2xT9X2ESg@mail.gmail.com>

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.)

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <330928.1627402967@sss.pgh.pa.us>
Permalink:  ../330928.1627402967@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/330928.1627402967@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, simon.riggs@enterprisedb.com, dean.a.rasheed@gmail.com
  Subject: Re: pgsql: Allow numeric scale to be negative or greater than precision.
  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>

* 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