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

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

Commit: d116bebda9eda46c960dcd2bf1cb5ee25223f5b7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-08-05T21:28:36Z
Releases: 8.3.4
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 +14 −13