Re: WIP: Relaxing the constraints on numeric scale

From: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: WIP: Relaxing the constraints on numeric scale
Date: 2021-06-29 20:45:52
Message-ID: CAEZATCVJOg6==gZHRC4e59oNyzgV4icd5y8U0mUaMLJ3htU8wA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 29 Jun 2021 at 21:34, Robert Haas <robertmhaas(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2021-06-29 20:52:16 Re: Overflow hazard in pgbench
Previous Message Tom Lane 2021-06-29 20:39:28 Re: Preventing abort() and exit() calls in libpq