Do not allow Unique nodes to be scanned backwards. The code claimed that it
authorTom Lane <[email protected]>
Tue, 5 Aug 2008 21:28:48 +0000 (21:28 +0000)
committerTom Lane <[email protected]>
Tue, 5 Aug 2008 21:28:48 +0000 (21:28 +0000)
commit29e818d7cc99c045940ce24b1ac4def597f7e2d6
tree50480b6c53cd1d349308cea617e7cbca131dc9e5
parent6145f0da0ea92c4c943641910cc8f88d60424ca3
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.
src/backend/executor/execAmi.c