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

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

Commit: 3d40d5e70ebe21b7d52467987bffad8aea16f29b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-08-05T21:28:29Z
Releases: 8.4.0
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