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

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: pgsql: Allow numeric scale to be negative or greater than precision.
Дата
Msg-id CANbhV-F_koHJbO9Qpm7uFb+--5jWOoku2eOTm19cvjw99zYfVQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Allow numeric scale to be negative or greater than precision.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Tue, 27 Jul 2021 at 17:22, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Simon Riggs <simon.riggs@enterprisedb.com> 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.  (Modulo the fact that "zero" here means
> a base-NDIGIT digit.)

Thanks, just trying to understand what that was for.

-- 
Simon Riggs                http://www.EnterpriseDB.com/



В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Stabilize output of new regression test.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Re-enable TAP tests of pg_receivewal for ZLIB on Windows