]> granicus.if.org Git - postgresql/commit
Refactor simplify_function et al to centralize argument simplification.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Mar 2012 23:15:58 +0000 (19:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Mar 2012 23:15:58 +0000 (19:15 -0400)
commit81a646febe87964725647a36d839f6b4b405f3ae
treea4e14c92b8f438cd3397310903d1221a600f5bbf
parent0339047bc93147c1c6f78f867ae6b0c215406235
Refactor simplify_function et al to centralize argument simplification.

We were doing the recursive simplification of function/operator arguments
in half a dozen different places, with rather baroque logic to ensure it
didn't get done multiple times on some arguments.  This patch improves that
by postponing argument simplification until after we've dealt with named
parameters and added any needed default expressions.

Marti Raudsepp, somewhat hacked on by me
src/backend/optimizer/util/clauses.c