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

From Dean Rasheed
Subject Re: WIP: Relaxing the constraints on numeric scale
Date
Msg-id CAEZATCVJOg6==gZHRC4e59oNyzgV4icd5y8U0mUaMLJ3htU8wA@mail.gmail.com
Whole thread Raw
In response to Re: WIP: Relaxing the constraints on numeric scale  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: WIP: Relaxing the constraints on numeric scale
List pgsql-hackers
On Tue, 29 Jun 2021 at 21:34, Robert Haas <robertmhaas@gmail.com> wrote:
>
> 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?
>

No, because the numeric dscale remains non-negative, so there's no
change to the way numeric values are stored. The only change is to
extend the allowed scale in the numeric typemod.

Regards,
Dean



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Preventing abort() and exit() calls in libpq
Next
From: Fabien COELHO
Date:
Subject: Re: Overflow hazard in pgbench