]> granicus.if.org Git - postgresql/commit
Marginal performance hack: avoid unnecessary work in expression_tree_mutator.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Apr 2007 00:14:54 +0000 (00:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Apr 2007 00:14:54 +0000 (00:14 +0000)
commitafaa6b982115ad490326be2c66c577f6195f0067
tree24bb418471fcebd4941e0e2554f32bb123476f68
parent39a333aa2b2d659f830a78a7d3c6bd43d4caa692
Marginal performance hack: avoid unnecessary work in expression_tree_mutator.
We can just palloc, instead of using makeNode, when we are going to
overwrite the whole node anyway in the FLATCOPY macro.  Also, use
FLATCOPY instead of copyObject for common node types Var and Const.
src/backend/optimizer/util/clauses.c