]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Implement constant-expression simplification per Bernard
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Sep 1999 02:28:44 +0000 (02:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Sep 1999 02:28:44 +0000 (02:28 +0000)
commit40f65241614deac2dda82c13e7228d132ee73153
treecf516b687b6f59b68e3c402168c5b17036fe6ec0
parent95d3d468ce388d3b52cd33e80119d50d167df3c9
Implement constant-expression simplification per Bernard
Frankpitt, plus some improvements from yours truly.  The simplifier depends
on the proiscachable field of pg_proc to tell it whether a function is
safe to pre-evaluate --- things like nextval() are not, for example.
Update pg_proc.h to contain reasonable cacheability information; as of
6.5.* hardly any functions were marked cacheable.  I may have erred too
far in the other direction; see recent mail to pghackers for more info.
This update does not force an initdb, exactly, but you won't see much
benefit from the simplifier until you do one.
src/backend/executor/execQual.c
src/backend/nodes/equalfuncs.c
src/backend/optimizer/plan/planmain.c
src/backend/optimizer/plan/planner.c
src/backend/optimizer/util/clauses.c
src/include/catalog/pg_proc.h
src/include/optimizer/clauses.h