Unix Technical Forum

pgsql: Fix choose_bitmap_and() so that partial index predicates are

This is a discussion on pgsql: Fix choose_bitmap_and() so that partial index predicates are within the pgsql Committers forums, part of the PostgreSQL category; --> Log Message: ----------- Fix choose_bitmap_and() so that partial index predicates are considered when deciding whether a potential additional indexscan ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Committers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:21 PM
Tom Lane
 
Posts: n/a
Default pgsql: Fix choose_bitmap_and() so that partial index predicates are

Log Message:
-----------
Fix choose_bitmap_and() so that partial index predicates are considered when
deciding whether a potential additional indexscan is redundant or not. As now
coded, any use of a partial index that was already used in a previous AND arm
will be rejected as redundant. This might be overly restrictive, but not
considering the point at all is definitely bad, as per example in bug #2441
from Arjen van der Meijden. In particular, a clauseless scan of a partial
index was *never* considered redundant by the previous coding, and that's
surely wrong. Being more flexible would also require some consideration
of how not to double-count the index predicate's selectivity.

Modified Files:
--------------
pgsql/src/backend/optimizer/path:
indxpath.c (r1.205 -> r1.206)
(http://developer.postgresql.org/cvsw...1.205&r2=1.206)

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:22 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com