Thread: pgsql-server/src backend/nodes/copyfuncs.c bac ...

pgsql-server/src backend/nodes/copyfuncs.c bac ...

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@svr1.postgresql.org    03/12/30 19:53:15

Modified files:
    src/backend/nodes: copyfuncs.c equalfuncs.c outfuncs.c
    src/backend/optimizer/path: indxpath.c joinpath.c
    src/backend/optimizer/plan: initsplan.c
    src/backend/optimizer/util: clauses.c restrictinfo.c
    src/include/nodes: relation.h
    src/include/optimizer: clauses.h

Log message:
    Adjust the definition of RestrictInfo's left_relids and right_relids
    fields: now they are valid whenever the clause is a binary opclause,
    not only when it is a potential join clause (there is a new boolean
    field canjoin to signal the latter condition).  This lets us avoid
    recomputing the relid sets over and over while examining indexes.
    Still more work to do to make this as useful as it could be, because
    there are places that could use the info but don't have access to the
    RestrictInfo node.