]> granicus.if.org Git - postgresql/commit
Skip eval_const_expressions when the query is such that the expression
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 May 2005 01:04:44 +0000 (01:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 May 2005 01:04:44 +0000 (01:04 +0000)
commitc8f81df41b1269714c08a508ccecc0adc8ef96bd
tree46cad8f3f407e2e8c9871e78a7f76c4da2704ebd
parent03a542ba630fe800afc98dc08a6f0d2b93b0addf
Skip eval_const_expressions when the query is such that the expression
would be evaluated only once anyway (ie, it's just a SELECT with no
FROM or an INSERT ... VALUES).  The planner can't do it any faster than
the executor, so no point in an extra copying of the expression tree.
src/backend/optimizer/plan/planner.c