BUG #1762: Integer multiplication error - Mailing list pgsql-bugs

From Milos Babic
Subject BUG #1762: Integer multiplication error
Date
Msg-id 20050709092516.B96D4F0CBD@svr2.postgresql.org
Whole thread Raw
Responses Re: BUG #1762: Integer multiplication error
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1762
Logged by:          Milos Babic
Email address:      milos.babic@gmail.com
PostgreSQL version: 8.0
Operating system:   FreeBSD
Description:        Integer multiplication error
Details:

When I try from psql to select:

select 1024*1024*4500;

it responses with:
error integer out of range

is it known bug or what is going on?

almost, even worst thing happens on postgresql version 7.4.2 on SuSe Linux
9.1
when I try
select 1024*1024*4500;

it responses with
423624704
!!!

it also happens when I try to insert 1024*1024*4500 into int8 field in
database!

Best regards
milos

pgsql-bugs by date:

Previous
From: Mark Reid
Date:
Subject: Re: pg_autovacuum: short, wide tables
Next
From: "Renato Gondim"
Date:
Subject: Cast