Clean up the usage of canonicalize_qual(): in particular, be consistent
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Dec 2003 21:57:37 +0000 (21:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Dec 2003 21:57:37 +0000 (21:57 +0000)
commitc607bd693ffcf225b7ef696ca44b537076038854
tree5284d0d0f9b8d671dedd379199bdbba114f8a352
parentd167fb10153a2f00c9a8b46df537a202f7755cb9
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.
13 files changed:
src/backend/catalog/heap.c
src/backend/catalog/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
src/backend/utils/adt/selfuncs.c
src/backend/utils/cache/relcache.c
src/include/catalog/catversion.h
src/include/nodes/relation.h
src/include/optimizer/prep.h