Thread: pgsql-server/src backend/catalog/heap.c backen ...

pgsql-server/src backend/catalog/heap.c backen ...

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@svr1.postgresql.org    03/12/28 17:57:37

Modified files:
    src/backend/catalog: heap.c index.c
    src/backend/commands: indexcmds.c
    src/backend/executor: execMain.c
    src/backend/optimizer/plan: planner.c
    src/backend/optimizer/prep: prepqual.c
    src/backend/optimizer/util: clauses.c
    src/backend/utils/adt: ruleutils.c selfuncs.c
    src/backend/utils/cache: relcache.c
    src/include/catalog: catversion.h
    src/include/nodes: relation.h
    src/include/optimizer: prep.h

Log message:
    Clean up the usage of canonicalize_qual(): in particular, be consistent
    about whether it is applied before or after eval_const_expressions().
    I believe there were some corner cases where the system would fail to
    recognize that a partial index is applicable because of the previous
    inconsistency.  Store normal rather than 'implicit AND' representations
    of constraints and index predicates in the catalogs.
    initdb forced due to representation change of constraints/predicates.