Re: pgstatindex still throws ERROR: value "3220078592" is out of range for type integer

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Takahiro Itagaki <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgstatindex still throws ERROR: value "3220078592" is out of range for type integer
Date: 2010-06-09 12:24:39
Message-ID: AANLkTinjdJGGh0Ug4_KTh6wyVmaaww6QFmldwuJhHn86@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jun 7, 2010 at 8:30 PM, Takahiro Itagaki
<itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> wrote:
>
> Dave Cramer <pg(at)fastcrypt(dot)com> wrote:
>
>> I noted on line 169 that max_avail is still an int ? Where else would
>> it be having problems ?
>
> It should not a problem because the local variable only stores byte
> size in a page. It will be at most only BLCKSZ (=8192).
>
> I wonder why you had "ERROR: value ... is out of range for type integer"
> message because we don't use any integer data types for sizes in
> pgstatindex. The error should have been thrown by SQL typin functions
> rather than C routines.
>
Takahiro,

Yes, this was the problem. I patched the C code but did not change the
functions.

Thanks,

Dave

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Leonardo F 2010-06-09 12:32:50 Re: Git: Unable to get pack file
Previous Message Heikki Linnakangas 2010-06-09 12:12:50 Re: walwriter not closing old files