]> granicus.if.org Git - postgresql/commit
Fix estimate_expression_value to constant-fold SQLValueFunction nodes.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Nov 2016 00:08:38 +0000 (19:08 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 29 Nov 2016 00:08:45 +0000 (19:08 -0500)
commit4e20511d5b8ba427730e09be45f9458f667f9c1e
tree322b27c239eda78b19a69a5ac33dea3a9b8c4334
parenteb6814168862ef0ff44716467aacdebcef87415a
Fix estimate_expression_value to constant-fold SQLValueFunction nodes.

Oversight in my commit 0bb51aa96.  Noted while poking at a recent
bug report --- HEAD's estimates for a query using CURRENT_DATE
were unexpectedly much worse than 9.6's.
src/backend/optimizer/util/clauses.c