From: | Grzegorz Jaskiewicz <gj(at)pointblue(dot)com(dot)pl> |
---|---|
To: | Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com> |
Cc: | "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Pg Hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: SELECT TOP %d PERCENT, or SELECT ... LIMIT %d PERCENT ? |
Date: | 2008-10-12 23:14:14 |
Message-ID: | 3CF9CDC2-F186-42E6-A24A-A8EAD5668C99@pointblue.com.pl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2008-10-12, at 16:22, Hitoshi Harada wrote:
> 2008/10/12 Robert Haas <robertmhaas(at)gmail(dot)com>:
>> I wonder if this could be implemented using the window-function
>> infrastructure...
>>
>
> Yeah, actually window functions I am working now has percent_rank() or
> something he wants. That is better than WITH clauses but still we must
> see the last row before determine the percent. Better than count(*) of
> course, but I'm not sure it meets his needs.
>
excuse my ignorance, apparently I don't recall that patches discussion
in here. If it pops out, and gets into cvs, can someone remind me of
that - please ?
Also, will that patch also be able to speed up count(*) , or is it for
different purpose ? Sorry if I am repeating the subject, if so -
please just respond in private.
thanks folks.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-10-13 00:44:09 | Re: recursive query crash |
Previous Message | David E. Wheeler | 2008-10-12 21:39:14 | Re: Version Number Function? |