Re: pgsql: Teach planner about more monotonic window functions - Mailing list pgsql-committers

From Alvaro Herrera
Subject Re: pgsql: Teach planner about more monotonic window functions
Date
Msg-id 20230127190005.kthdwmkrg434vxtp@alvherre.pgsql
Whole thread Raw
In response to pgsql: Teach planner about more monotonic window functions  (David Rowley <drowley@postgresql.org>)
Responses Re: pgsql: Teach planner about more monotonic window functions  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-committers
On 2023-Jan-27, David Rowley wrote:

> Teach planner about more monotonic window functions
> 
> 9d9c02ccd introduced runConditions for window functions to allow
> monotonic window function evaluation to be made more efficient when the
> window function value went beyond some value that it would never go back
> from due to its monotonic nature.  That commit added prosupport functions
> to inform the planner that row_number(), rank(), dense_rank() and some
> forms of count(*) were monotonic.  Here we add support for ntile(),
> cume_dist() and percent_rank().

I think this commit missed a catversion bump.


-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/



pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Minor GUC code refactoring.
Next
From: David Rowley
Date:
Subject: Re: pgsql: Teach planner about more monotonic window functions