pgsql: Tweak choose_bitmap_and() heuristics in the light of example

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Tweak choose_bitmap_and() heuristics in the light of example
Date: 2005-11-30 17:10:25
Message-ID: 20051130171025.0887B9DD629@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Tweak choose_bitmap_and() heuristics in the light of example provided in bug
#2075: consider an index redundant if any of its index conditions were already
used, rather than if all of them were. Also, make the selectivity comparison
a bit fuzzy, so that very small differences in estimated selectivities don't
skew the results.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/backend/optimizer/path:
indxpath.c (r1.191.2.2 -> r1.191.2.3)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/path/indxpath.c.diff?r1=1.191.2.2&r2=1.191.2.3)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-11-30 23:10:08 pgsql: Rearrange code in pg_atoi() to avoid assuming that isspace()
Previous Message Tom Lane 2005-11-30 17:10:19 pgsql: Tweak choose_bitmap_and() heuristics in the light of example