Thread: pgsql: Do not allow Unique nodes to be scanned backwards.

pgsql: Do not allow Unique nodes to be scanned backwards.

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
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.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/executor:
        execAmi.c (r1.75.4.2 -> r1.75.4.3)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/execAmi.c?r1=1.75.4.2&r2=1.75.4.3)