Re: New feature: accumulative functions.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: New feature: accumulative functions.
Date: 2011-09-25 19:08:47
Message-ID: 4362.1316977727@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?ISO-8859-2?Q?pasman_pasma=F1ski?= <pasman(dot)p(at)gmail(dot)com> writes:
> My english is not perfect, by accumulative i think about monotonically
> increasing function.

Oh, I see how that would work. I can't get real excited about it
though. The use-case seems a bit narrow, and the amount of complexity
added to the btree search mechanism (thereby slowing down all btree
searches) would be significant. Furthermore, unless f() is pretty cheap
to evaluate, you'd end up preferring an index on f(x) anyway, because
that can be searched without any new evaluations of f().

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Eduardo Morras 2011-09-25 19:09:36 Re: looking for a faster way to do that
Previous Message Uwe Schroeder 2011-09-25 18:57:11 Re: (another ;-)) PostgreSQL-derived project ...