From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL SQL List <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: trying to summarize into a new table by time... |
Date: | 2001-06-02 15:02:25 |
Message-ID: | 20010602100225.A2848@lerami.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
* Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Clayton Cottingham aka drfrog | 2001-06-02 17:27:30 | help with a function |
Previous Message | Tom Lane | 2001-06-02 14:58:59 | Re: trying to summarize into a new table by time... |