Re: Do we need multiple forms of the SQL2003 statistics

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Do we need multiple forms of the SQL2003 statistics
Date: 2006-07-29 19:07:03
Message-ID: 200607292107.04152.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sergey E. Koposov wrote:
> I think since we are supporting the numeric type as a special
> high-precision type, Postgres must have the high-precision
> versions of all computational functions. Just my opinion.

Another way to look at it is whether you want to have accurate
computations (numeric) or approximate computations (float). I'm not a
statistician, so I don't know what most of these functions are used
for. From a mathematician's point of view, however, some of these
functions normally produce irrational numbers anyway, so it seems
unlikely that numeric will be useful. But looking at the definition
of, say, regr_avgx(Y, X), if all the input values are integers, it
might be useful if I could get an exact integer or rational number as
output, instead of a float, that is.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message korryd@enterprisedb.com 2006-07-29 19:35:08 Re: [HACKERS] Possible explanation for Win32 stats
Previous Message Martijn van Oosterhout 2006-07-29 18:31:07 Re: Formulating an sql query with CTID