Do not allow Unique nodes to be scanned backwards. The code claimed that it

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

Commit: 5d46ee4a4a59e5febf202ec53a965a4551724504
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-08-05T21:28:48Z
Releases: 8.1.14
Do not allow Unique nodes to be scanned backwards.  The code claimed that it
would work, but in fact it didn't return the same rows when moving backwards
as when moving forwards.  This would have no visible effect in a DISTINCT
query (at least assuming the column datatypes use a strong definition of
equality), but it gave entirely wrong answers for DISTINCT ON queries.

Files

PathChange+/−
src/backend/executor/execAmi.c modified +1 −4