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

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

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