Re: Window Function "Run Conditions"

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Zhihong Yu <zyu(at)yugabyte(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Window Function "Run Conditions"
Date: 2021-08-18 10:39:36
Message-ID: CAApHDvpiAUmUMTETAua8XCLFJiFhsZkCwuiW50KDvehexA-SLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 17 Aug 2021 at 03:51, Zhihong Yu <zyu(at)yugabyte(dot)com> wrote:
> + if ((res->monotonic & MONOTONICFUNC_INCREASING) == MONOTONICFUNC_INCREASING)
>
> The above can be simplified as 'if (res->monotonic & MONOTONICFUNC_INCREASING) '

True. I've attached an updated patch.

David

Attachment Content-Type Size
v3_teach_planner_and_executor_about_monotonic_wfuncs.patch application/octet-stream 44.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2021-08-18 10:43:05 Re: Use extended statistics to estimate (Var op Var) clauses
Previous Message Dilip Kumar 2021-08-18 10:15:14 Re: pgsql: pgstat: Bring up pgstat in BaseInit() to fix uninitialized use o