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    04/01/03 23:51:52

Modified files:
    src/backend/nodes: copyfuncs.c outfuncs.c
    src/backend/optimizer/path: clausesel.c costsize.c indxpath.c
    src/backend/optimizer/plan: initsplan.c
    src/backend/optimizer/prep: prepunion.c
    src/backend/optimizer/util: clauses.c restrictinfo.c
    src/include/nodes: relation.h
    src/include/optimizer: clauses.h cost.h

Log message:
    Merge restrictlist_selectivity into clauselist_selectivity by
    teaching the latter to accept either RestrictInfo nodes or bare
    clause expressions; and cache the selectivity result in the RestrictInfo
    node when possible.  This extends the caching behavior of approx_selectivity
    to many more contexts, and should reduce duplicate selectivity
    calculations.