summaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-04-01 00:48:44 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-04-01 00:48:44 +0000
commite3a47483a20936b8d5c642904d623d5786f47b44 (patch)
tree1945aa3b1991a3ee1f3c4881e25738d9cdfef324 /src/backend/executor
parentf82277c80de04a340b77daf930643af54b81400c (diff)
Fix an oversight I made in a cleanup patch over a year ago:
eval_const_expressions needs to be passed the PlannerInfo ("root") structure, because in some cases we want it to substitute values for Param nodes. (So "constant" is not so constant as all that ...) This mistake partially disabled optimization of unnamed extended-Query statements in 8.3: in particular the LIKE-to-indexscan optimization would never be applied if the LIKE pattern was passed as a parameter, and constraint exclusion depending on a parameter value didn't work either.
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions