Re: numeric data type upper limit. - Mailing list pgsql-novice

From Aravind Kumar
Subject Re: numeric data type upper limit.
Date
Msg-id CADhiBKZHoDgg6jzcoxNVtOkeu=fZrhd+edyM6Ut3tTW2x2x-Ag@mail.gmail.com
Whole thread Raw
In response to Re: numeric data type upper limit.  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-novice
On Sun, Aug 14, 2016 at 6:05 PM, David G. Johnston
<david.g.johnston@gmail.com> wrote:
> On Sunday, August 14, 2016, Aravind Kumar <aravindc26@gmail.com> wrote:
>>
>> Hi,
>>
>> when I do
>>
>>  select 1.0e+1001::numeric;
>>
>> I get
>>
>> invalid input syntax for type numeric: "1.0e+1001"
>>
>> But
>>
>> select 1.0e+1000::numeric;
>>
>> seems to be valid.
>>
>> Postgresql documentation tells me that numeric data type has an upper
>> limit of 131072 digits before decimal point.
>>
>> Am I missing something ?
>>
>
> Guessing here but I think numeric input requires single quotes around the
> value.
>
> David J.

Tried with single quotes doesn't seem to work. Possible bug ?

Aravind Chintalapalli


pgsql-novice by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: numeric data type upper limit.
Next
From: Tom Lane
Date:
Subject: Re: numeric data type upper limit.