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