Thread: pgsql-server/src/backend/optimizer/util pathnode.c

pgsql-server/src/backend/optimizer/util pathnode.c

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@svr1.postgresql.org    04/01/18 23:49:41

Modified files:
    src/backend/optimizer/util: pathnode.c

Log message:
    Recognize that IN subqueries return already-unique results if they use
    UNION/INTERSECT/EXCEPT (without ALL).  This adds on to the previous
    optimization for subqueries using DISTINCT.