pgsql-server/src backend/nodes/list.c backend/ ...

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src backend/nodes/list.c backend/ ...
Date: 2003-01-24 03:58:44
Message-ID: 20030124035844.27D63476CDE@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl(at)postgresql(dot)org 03/01/23 22:58:44

Modified files:
src/backend/nodes: list.c
src/backend/optimizer/path: indxpath.c pathkeys.c
src/backend/optimizer/plan: initsplan.c
src/backend/optimizer/util: joininfo.c relnode.c restrictinfo.c
src/backend/utils/adt: selfuncs.c
src/include/nodes: pg_list.h
src/include/optimizer: joininfo.h paths.h planmain.h

Log message:
Modify planner's implied-equality-deduction code so that when a set
of known-equal expressions includes any constant expressions (including
Params from outer queries), we actively suppress any 'var = var'
clauses that are or could be deduced from the set, generating only the
deducible 'var = const' clauses instead. The idea here is to push down
the restrictions implied by the equality set to base relations whenever
possible. Once we have applied the 'var = const' clauses, the 'var = var'
clauses are redundant, and should be suppressed both to save work at
execution and to avoid double-counting restrictivity.

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2003-01-24 05:23:55 pgsql-server/src/bin/psql Tag: REL7_3_STABLE c ...
Previous Message Peter Eisentraut - PostgreSQL 2003-01-23 23:39:11 pgsql-server/ oc/src/sgml/func.sgml oc/src/sgm ...