postgresql/src/backend/optimizer/util
Tom Lane 6f19a8c41f Teach eval_const_expressions to constant-fold LEAST/GREATEST expressions.
Doing this requires an assumption that the invoked btree comparison
function is immutable.  We could check that explicitly, but in other
places such as contain_mutable_functions we just assume that it's true,
so we may as well do likewise here.  (If the comparison function's
behavior isn't immutable, the sort order in indexes built with it would
be unstable, so it seems certainly wrong for it not to be so.)

Vik Fearing

Discussion: https://postgr.es/m/c6e8504c-4c43-35fa-6c8f-3c0b80a912cc@2ndquadrant.com
2018-12-30 13:42:04 -05:00
..
clauses.c Teach eval_const_expressions to constant-fold LEAST/GREATEST expressions. 2018-12-30 13:42:04 -05:00
joininfo.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile Extract restriction OR clauses whether or not they are indexable. 2013-12-30 12:24:37 -05:00
orclauses.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pathnode.c Remove some unnecessary fields from Plan trees. 2018-10-07 14:33:17 -04:00
placeholder.c Disable support for partitionwise joins in problematic cases. 2018-08-31 20:34:06 +09:00
plancat.c Remove obsolete IndexIs* macros 2018-12-27 10:07:46 +01:00
predtest.c Improve predtest.c's handling of cases with NULL-constant inputs. 2018-03-21 18:30:46 -04:00
relnode.c Disable support for partitionwise joins in problematic cases. 2018-08-31 20:34:06 +09:00
restrictinfo.c Change more places to be less trusting of RestrictInfo.is_pushed_down. 2018-04-20 15:19:16 -04:00
tlist.c Fix mishandling of sortgroupref labels while splitting SRF targetlists. 2018-06-21 10:58:42 -04:00
var.c Update copyright for 2018 2018-01-02 23:30:12 -05:00