From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix failure to set correct operator in window run condition
Date: Thu, 04 Aug 2022 22:15:05 +0000
Message-ID: <E1oJj7R-000KwZ-8f@gemulon.postgresql.org> (raw)
Fix failure to set correct operator in window run condition
This was a simple omission in 9d9c02ccd where the code didn't correctly
set the operator to use in the run condition OpExpr when the window
function was both monotonically increasing and decreasing.
Bug discovered by Julien Roze, although he did not report it.
Reported-by: Phil Florent
Discussion: https://postgr.es/m/PA4P191MB160009A09B9D0624359278CFBA9F9@PA4P191MB1600.EURP191.PROD.OUTLOOK.COM
Backpatch-through: 15, where 9d9c02ccd was added
Branch
------
REL_15_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/270eb4b5d4986534f2d522ebb19f67396d13cf44
Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 1 +
src/test/regress/expected/window.out | 17 +++++++++++++++++
src/test/regress/sql/window.sql | 11 +++++++++++
3 files changed, 29 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: drowley@postgresql.org
Subject: Re: pgsql: Fix failure to set correct operator in window run condition
In-Reply-To: <E1oJj7R-000KwZ-8f@gemulon.postgresql.org>
References: <E1oJj7R-000KwZ-8f@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox