Fix brown-paper-bag bug in commit 0a459cec96d3856f476c2db298c6b52f592894e8.

RANGE_OFFSET comparisons need to examine the first ORDER BY column,
which isn't necessarily the first column in the incoming tuples.
No idea how this slipped through initial testing.

Per bug #15082 from Zhou Digoal.

Discussion: 
https://postgr.es/m/151939899974.1461.9411971793110285...@wrigleys.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9fe802c8185e9a53158b6797d0f6fd8bfbb01af1

Modified Files
--------------
src/backend/executor/nodeWindowAgg.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

Reply via email to