pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix failure to set correct operator in window run condition
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix failure to set correct operator in window run condition
@ 2022-08-04 22:14  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: David Rowley @ 2022-08-04 22:14 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix failure to set correct operator in window run condition
@ 2022-08-04 22:15  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: David Rowley @ 2022-08-04 22:15 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-08-04 22:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-08-04 22:14 pgsql: Fix failure to set correct operator in window run condition David Rowley <drowley@postgresql.org>
2022-08-04 22:15 pgsql: Fix failure to set correct operator in window run condition David Rowley <drowley@postgresql.org>

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