Re: [HACKERS] Re: [HACKERS] Is it necessary to rewrite table while increasing the scale of datatype numeric? - Mailing list pgsql-hackers

From Jeff Janes
Subject Re: [HACKERS] Re: [HACKERS] Is it necessary to rewrite table while increasing the scale of datatype numeric?
Date
Msg-id CAMkU=1xpGYWo_jQcfaUrmk2+=JE6TsZc8u6xTB=pH_2-iVM8Rg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Re: [HACKERS] Is it necessary to rewrite table while increasing the scale of datatype numeric?  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On Fri, Sep 6, 2013 at 9:34 AM, Greg Stark <stark@mit.edu> wrote:
>
>
> But I wonder if we could just declare that that's not what the scale typmod
> does. That it's just a maximum scale but it's perfectly valid for NUMERIC
> data with lower scales to be stored in a column than the typmod says. In a
> way the current behaviour is like bpchar but it would be nice if it was more
> like varchar

I agree that this makes more sense than what is currently done.  But
are we going to break backwards compatibility to achieve it?  Do the
standards specify a behavior here?

Cheers,

Jeff



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Hstore: Query speedups with Gin index
Next
From: Jim Nasby
Date:
Subject: Re: dynamic shared memory