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

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

Commit: aab9979c5c8fed679e8f1240aae8cfd4e6432100
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-08-05T21:28:42Z
Releases: 8.2.10
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
src/backend/executor/nodeUnique.c modified +6 −13