forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitae45691
committed
Teach bitmap path generation about transforming OR-clauses to SAOP's
When optimizer generates bitmap paths, it considers breaking OR-clausearguments one-by-one. But now, a group of similar OR-clauses can betransformed into SAOP during index matching. So, bitmap paths shouldkeep up.This commit teaches bitmap paths generation machinery to group similarOR-clauses into dedicated RestrictInfos. Those RestrictInfos are consideredboth to match index as a whole (as SAOP), or to match as a set of individualOR-clause argument one-by-one (the old way).Therefore, bitmap path generation will takes advantage of OR-clauses to SAOP'stransformation. The old way of handling them is also considered. So, thereshouldn't be planning regression.Discussion:https://postgr.es/m/CAPpHfdu5iQOjF93vGbjidsQkhHvY2NSm29duENYH_cbhC6x%2BMg%40mail.gmail.comAuthor: Alexander Korotkov, Andrey LepikhovReviewed-by: Alena Rybakina, Andrei Lepikhov, Jian he, Robert HaasReviewed-by: Peter Geoghegan1 parentd4378c0 commitae45691
File tree
7 files changed
+664
-104
lines changed- src
- backend/optimizer
- path
- util
- include/optimizer
- test/regress
- expected
- sql
- tools/pgindent
7 files changed
+664
-104
lines changed0 commit comments
Comments
(0)