Re: WIP: Relaxing the constraints on numeric scale - Mailing list pgsql-hackers

From Robert Haas
Subject Re: WIP: Relaxing the constraints on numeric scale
Date
Msg-id CA+TgmoajNi8Wo7nXSHn_g46=6Q71j_0czYe=jG9uMu8VFhXkKA@mail.gmail.com
Whole thread Raw
In response to WIP: Relaxing the constraints on numeric scale  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: WIP: Relaxing the constraints on numeric scale
Re: WIP: Relaxing the constraints on numeric scale
List pgsql-hackers
On Tue, Jun 29, 2021 at 3:58 PM Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> When specifying NUMERIC(precision, scale) the scale is constrained to
> the range [0, precision], which is per SQL spec. However, at least one
> other major database vendor intentionally does not impose this
> restriction, since allowing scales outside this range can be useful.

I thought about this too, but
http://postgr.es/m/774767.1591985683@sss.pgh.pa.us made me think that
it would be an on-disk format break. Maybe it's not, though?

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Pipeline mode and PQpipelineSync()
Next
From: Tom Lane
Date:
Subject: Re: Preventing abort() and exit() calls in libpq