]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Prefer actual constants to pseudo-constants in equivalence class machinery.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Oct 2012 18:19:55 +0000 (14:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 Oct 2012 18:19:55 +0000 (14:19 -0400)
commitb1f7ee9218f91c755c97aefaf4494029dbf73714
treee3ac940bd646601ab7a1589ab22130bccd26c840
parent9619fdca106149d9e7bae5db3977435f8ce5f0c2
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