Re: SELECT TOP %d PERCENT, or SELECT ... LIMIT %d PERCENT ?

From: "Hitoshi Harada" <umi(dot)tanuki(at)gmail(dot)com>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>
Cc: "Grzegorz Jaskiewicz" <gj(at)pointblue(dot)com(dot)pl>, "Pg Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SELECT TOP %d PERCENT, or SELECT ... LIMIT %d PERCENT ?
Date: 2008-10-12 15:22:33
Message-ID: e08cc0400810120822y7ba25d68h7f83ab00517746c0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Regards,

--
Hitoshi Harada

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2008-10-12 15:58:23 Re: The Axe list
Previous Message Martijn van Oosterhout 2008-10-12 15:10:33 Re: The Axe list