pgsql: Marginal performance hack: avoid unnecessary work in

Started by Tom Laneover 19 years ago1 messagescommitters
Jump to latest
#1Tom Lane
tgl@postgresql.org

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/optimizer/util:
clauses.c (r1.242 -> r1.243)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/util/clauses.c.diff?r1=1.242&r2=1.243)