]> granicus.if.org Git - postgresql/commit
Repair error noticed by Roberto Cornacchia: selectivity code
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Sep 1999 02:36:04 +0000 (02:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Sep 1999 02:36:04 +0000 (02:36 +0000)
commit51db6455eac8aa5b0078cefffed51a6257ccbe1d
treeb32ee35da610ebae0397bec58e0ad57143a21517
parent45500964f61b0ec671b84b1fdb988bad78f35473
Repair error noticed by Roberto Cornacchia: selectivity code
was rejecting negative attnums as bogus, which of course they are not.
Add code to get_attdisbursion to produce a useful value for OID attribute,
since VACUUM does not store stats for system attributes.
Also, repair bug that's been in eqjoinsel for a long time: it was taking
the max of the two columns' disbursions, whereas it should use the min.
src/backend/optimizer/path/clausesel.c
src/backend/optimizer/util/clauses.c
src/backend/optimizer/util/plancat.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/cache/lsyscache.c