pgsql: Fix estimate_expression_value to constant-fold SQLValueFunction

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix estimate_expression_value to constant-fold SQLValueFunction
Date: 2016-11-29 00:09:03
Message-ID: E1cBVyp-0006j4-M7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4e20511d5b8ba427730e09be45f9458f667f9c1e

Modified Files
--------------
src/backend/optimizer/util/clauses.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2016-11-29 04:26:57 Re: pgsql: Add putenv support for msvcrt from Visual Studio 2013
Previous Message Alvaro Herrera 2016-11-28 18:56:51 pgsql: Fix get_relation_info name typo'ed in a comment