Re: SELECT INTO using Views? - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: SELECT INTO using Views?
Date
Msg-id 20070109171126.GB19523@wolff.to
Whole thread Raw
In response to Re: SELECT INTO using Views?  ("Jeanna Geier" <jgeier@apt-cafm.com>)
List pgsql-general
On Tue, Jan 09, 2007 at 10:10:46 -0600,
  Jeanna Geier <jgeier@apt-cafm.com> wrote:
>
> If I cast the entire operation to an INT:
> (a.area * su.units_per_sqfoot::integer)::integer AS area_sq
>  or by
> (a.area * su.units_per_sqfoot)::integer AS area_sq,
> I'm getting an 'ERROR:  integer out of range' error returned when I run my
> SELECT statement:

This suggests that the values are too large to be represented in int4. Can
you switch to using int8?

pgsql-general by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: Autovacuum Improvements
Next
From: Bruno Wolff III
Date:
Subject: Re: Questions about horizontal partitioning