Re: pgsql: Allow numeric scale to be negative or greater than precision.

2021-07-27 Thread Simon Riggs
On Tue, 27 Jul 2021 at 17:22, Tom Lane wrote: > > Simon Riggs 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 a

Re: pgsql: Allow numeric scale to be negative or greater than precision.

2021-07-27 Thread Tom Lane
Simon Riggs 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. (Mo

Re: pgsql: Allow numeric scale to be negative or greater than precision.

2021-07-27 Thread Simon Riggs
This is for migration? Or does it mean very small values now occupy less space since we store fewer zeros? Thanks On Mon, 26 Jul 2021 at 14:17, Dean Rasheed wrote: > > Allow numeric scale to be negative or greater than precision. > > Formerly, when specifying NUMERIC(precision, scale), the scal