pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Larry Rosenman <ler@lerctr.org>
Cc: PostgreSQL SQL List <pgsql-sql@postgresql.org>
Subject: Re: trying to summarize into a new table by time...
Date: Sat, 02 Jun 2001 10:58:59 -0400
Message-ID: <11883.991493939@sss.pgh.pa.us> (raw)
In-Reply-To: <20010602094435.A1773@lerami.lerctr.org>
References: <20010602094435.A1773@lerami.lerctr.org>

> One more question, will the sum() on a bigint column cast to float
> happen in floating point? 

Yes.  You don't really need that though.  These days there are only
two flavors of sum(): float8 accumulator (for float8 and float4 inputs)
and numeric accumulator (for everything else).  You don't need to worry
about overflow anymore.  float8 is faster if you don't mind loss of
precision...

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <11883.991493939@sss.pgh.pa.us>
Permalink:  ../11883.991493939@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11883.991493939@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ler@lerctr.org
  Subject: Re: trying to summarize into a new table by time...
  In-Reply-To: <11883.991493939@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox