Thread: pgsql-server/src/backend/optimizer/util restri ...

pgsql-server/src/backend/optimizer/util restri ...

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@svr1.postgresql.org    04/02/27 17:48:04

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

Log message:
    Adjust remove_redundant_join_clauses() so that when it has a choice
    of which redundant clause to remove, it removes the more expensive one.
    In simple scenarios the clauses will be like 'var = var' and there's
    no difference, but we are now capable of considering cases where there
    are sub-selects in the clauses, and it makes a BIG difference.