From: | David Rowley <drowley(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix failure to set correct operator in window run condition |
Date: | 2022-08-04 22:14:27 |
Message-ID: | E1oJj6p-000KuQ-15@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/53823a06be6f40d88d8e3ba45045ecee1a21fc5e
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(+)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2022-08-04 22:15:05 | pgsql: Fix failure to set correct operator in window run condition |
Previous Message | Thomas Munro | 2022-08-04 21:59:42 | pgsql: Remove dead setenv, unsetenv replacement code. |