Casting issue with aggregated function - Mailing list pgsql-general

From Marc Mamin
Subject Casting issue with aggregated function
Date
Msg-id A03188C6623C0D46A703CB5AA59907F201C11E77@JENMAIL01.ad.intershop.net
Whole thread Raw
Responses Re: Casting issue with aggregated function  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general


Hi,

I'm facing a cast issue when using sub queries and I 'd like your opinion if this should be submittede as a Bug.

(Postgres version 8.1.0)

Compare:

A)

select sum(25665800) as c

        => 25665800 (int8)

B)

select sum(c) from
(
select sum(25665800) as c
)foo

        => 25665800 (numeric)

I find the cast form int8 to numeric being strange.


Cheers,

Marc

pgsql-general by date:

Previous
From: alexandre - aldeia digital
Date:
Subject: pg_dump error codes
Next
From: Bruce Momjian
Date:
Subject: Re: Need Licensing Information for bundling POSTGRESQL With