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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9fe802c8185e9a53158b6797d0f6fd8bfbb01af1
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-02-23T20:11:40Z
Releases: 11.0
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.9411971793110285476@wrigleys.postgresql.org

Files

PathChange+/−
src/backend/executor/nodeWindowAgg.c modified +6 −4

Discussion