Re: SELECT TOP %d PERCENT, or SELECT ... LIMIT %d PERCENT ? - Mailing list pgsql-hackers

From Hitoshi Harada
Subject Re: SELECT TOP %d PERCENT, or SELECT ... LIMIT %d PERCENT ?
Date
Msg-id e08cc0400810120822y7ba25d68h7f83ab00517746c0@mail.gmail.com
Whole thread Raw
In response to Re: SELECT TOP %d PERCENT, or SELECT ... LIMIT %d PERCENT ?  ("Robert Haas" <robertmhaas@gmail.com>)
Responses Re: SELECT TOP %d PERCENT, or SELECT ... LIMIT %d PERCENT ?
List pgsql-hackers
2008/10/12 Robert Haas <robertmhaas@gmail.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


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: The Axe list
Next
From: Tom Lane
Date:
Subject: Re: The Axe list