]> granicus.if.org Git - postgresql/commit
Do not allow Unique nodes to be scanned backwards. The code claimed that it
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2008 21:29:01 +0000 (21:29 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2008 21:29:01 +0000 (21:29 +0000)
commit45b8e6ed687c7a7c595d116ecb6fe898041fd7c5
treeb1c915e581696235294cc0419976b8bd74d005bb
parent20c20dfeec4420d0c63ae29c950281cb70f64c39
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