]> 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:28:48 +0000 (21:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Aug 2008 21:28:48 +0000 (21:28 +0000)
commit5d46ee4a4a59e5febf202ec53a965a4551724504
treefd549d0b14152663b39a1c0b5e926ac1a8d272b1
parenta3a8f237bdac86904053190d0f3b3c541e843456
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