]> 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:47 +0000 (14:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Oct 2012 18:19:47 +0000 (14:19 -0400)
commitff8f7103b559d8f19731157aca38650a938fedef
tree09ef839796fef47253968ba7bb52cec76e2cf012
parent5110a96992e508b220a7a6ab303b0501c4237b4a
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