Skip site navigation (1) Skip section navigation (2)

Re: ERROR: value out of range: underflow

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Thom Brown <thombrown(at)gmail(dot)com>
Cc: rod(at)iol(dot)ie, Anton Maksimenkov <anton200(at)gmail(dot)com>,pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: value out of range: underflow
Date: 2010-02-26 18:39:19
Message-ID: 20100226183919.GC3980@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-general
Thom Brown escribió:
> On 26 February 2010 14:33, Raymond O'Donnell <rod(at)iol(dot)ie> wrote:
> > On 26/02/2010 12:15, Thom Brown wrote:
> >> On 26 February 2010 12:02, Anton Maksimenkov <anton200(at)gmail(dot)com> wrote:

> I'm also curious to know why there's an underflow error instead of
> overflow.  And in fact, even if a 19 digit phone number were passed
> in, it would only result in a 10^-1 calculation, resulting in 0.1.
> 
> I think we need to know what value is being passed in to generate this error.

If you pass a string longer than 342 chars it fails with an underflow.
Not sure why it doesn't fail the second time, sounds fishy.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

pgsql-general by date

Next:From: TerryDate: 2010-02-26 20:46:10
Subject: Re: select issue with order v8.1
Previous:From: Magnus HaganderDate: 2010-02-26 17:52:51
Subject: Re: Threads limit for postmaster

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group