From: Larry Rosenman <ler@lerctr.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL SQL List <pgsql-sql@postgresql.org>
Subject: Re: trying to summarize into a new table by time...
Date: Sat, 2 Jun 2001 10:02:25 -0500
Message-ID: <20010602100225.A2848@lerami.lerctr.org> (raw)
In-Reply-To: <11883.991493939@sss.pgh.pa.us>
* Tom Lane <tgl@sss.pgh.pa.us> [010602 09:59]:
> > 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...
Since I'm looking at order of magnitude type comparisons, the float8
is fine. I don't need to know down to the byte, just comparisons
between orders of magnitudes. ISP's move a *LOT* of data :-)
LER
>
> regards, tom lane
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
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: ler@lerctr.org, tgl@sss.pgh.pa.us
Subject: Re: trying to summarize into a new table by time...
In-Reply-To: <20010602100225.A2848@lerami.lerctr.org>
* 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