]> granicus.if.org Git - postgresql/commit
Prefer actual constants to pseudo-constants in equivalence class machinery.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Oct 2012 18:19:39 +0000 (14:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Oct 2012 18:19:39 +0000 (14:19 -0400)
commit7e951ba6e1de7bb77aef4ea2d0ef7d2be860f389
tree1a86d992b07d546ae32ad7fdb5a998793f64978f
parent725fa25e20248800461b06802f5ee9a203825618
Prefer actual constants to pseudo-constants in equivalence class machinery.

generate_base_implied_equalities_const() should prefer plain Consts over
other em_is_const eclass members when choosing the "pivot" value that
all the other members will be equated to.  This makes it more likely that
the generated equalities will be useful in constraint-exclusion proofs.
Per report from Rushabh Lathia.
src/backend/optimizer/path/equivclass.c