Windowing functions - future plans

View: New views
2 Messages — Rating Filter:   Alert me  

Windowing functions - future plans

by Thomas Kellerer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I was wondering if there are plans to extend the window framing clause to allow the number of rows in the frame to be specified.

Something like:

ROWS BETWEEN 5 PRECEDING AND 5 FOLLOWING

I did find a comment on the TODO list regarding the framing clause ("Implement full support for window framing clauses") but the explanation did not mention allowing a number instead of UNBOUND for the frame definition.

Oracle and DB2 do support this syntax ;)

Regards
Thomas


--
Sent via pgsql-general mailing list (pgsql-general@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Re: Windowing functions - future plans

by David Fetter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Nov 01, 2009 at 12:04:32PM +0100, Thomas Kellerer wrote:

> Hi,
>
> I was wondering if there are plans to extend the window framing
> clause to allow the number of rows in the frame to be specified.
>
> Something like:
>
> ROWS BETWEEN 5 PRECEDING AND 5 FOLLOWING
>
> I did find a comment on the TODO list regarding the framing clause
> ("Implement full support for window framing clauses") but the
> explanation did not mention allowing a number instead of UNBOUND for
> the frame definition.
>
> Oracle and DB2 do support this syntax ;)

Patches welcome :)

Cheers,
David.
--
David Fetter <david@...> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@...
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

--
Sent via pgsql-general mailing list (pgsql-general@...)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general