Re: Basic Requirements for SQL Window Functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Basic Requirements for SQL Window Functions
Date
Msg-id 19224.1101746473@sss.pgh.pa.us
Whole thread Raw
In response to Basic Requirements for SQL Window Functions  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> The SQL window functions seem to require an ordering for most of their
> operations.

AFAICS, the entire concept of a "window" implies the input is ordered
in some way; what operations would they provide that don't require this?

> It is possible that that could be provided by a sort node in
> the execution plan.

Either sort or indexscan, but you'd certainly need one or the other.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: Documentation on PITR still scarce
Next
From: Greg Stark
Date:
Subject: Re: Stopgap solution for table-size-estimate updatingproblem