Re: pgsql: Teach planner about more monotonic window functions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: David Rowley <drowley(at)postgresql(dot)org>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Teach planner about more monotonic window functions
Date: 2023-01-27 19:00:05
Message-ID: 20230127190005.kthdwmkrg434vxtp@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2023-01-27 20:25:58 Re: pgsql: Teach planner about more monotonic window functions
Previous Message Tom Lane 2023-01-27 17:13:48 pgsql: Minor GUC code refactoring.