]> 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:20:15 +0000 (14:20 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Oct 2012 18:20:15 +0000 (14:20 -0400)
commit29d539b35fb9a5c82546918132f9a561c75f14d7
tree4d26b0794f050e13193c6a91388f93f775660037
parent2383d6d132ea1908af73f1285c27f22bc8b6065f
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