- Notifications
You must be signed in to change notification settings - Fork5
Commita2822fb
committed
Support index-only scans using the visibility map to avoid heap fetches.
When a btree index contains all columns required by the query, and thevisibility map shows that all tuples on a target heap page arevisible-to-all, we don't need to fetch that heap page. This patch dependson the previous patches that made the visibility map reliable.There's a fair amount left to do here, notably trying to figure out a lesschintzy way of estimating the cost of an index-only scan, but the corefunctionality seems ready to commit.Robert Haas and Ibrar Ahmed, with some previous work by Heikki Linnakangas.1 parentcaa1054 commita2822fb
File tree
34 files changed
+704
-203
lines changed- doc/src/sgml
- ref
- src
- backend
- access
- index
- nbtree
- commands
- executor
- nodes
- optimizer
- path
- plan
- util
- tcop
- utils
- cache
- misc
- include
- access
- catalog
- nodes
- optimizer
- test/regress/expected
34 files changed
+704
-203
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
479 | 486 | | |
480 | 487 | | |
481 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2404 | 2404 | | |
2405 | 2405 | | |
2406 | 2406 | | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
2407 | 2423 | | |
2408 | 2424 | | |
2409 | 2425 | | |
| |||
6353 | 6369 | | |
6354 | 6370 | | |
6355 | 6371 | | |
6356 | | - | |
| 6372 | + | |
6357 | 6373 | | |
6358 | 6374 | | |
6359 | 6375 | | |
| |||
6362 | 6378 | | |
6363 | 6379 | | |
6364 | 6380 | | |
| 6381 | + | |
6365 | 6382 | | |
6366 | 6383 | | |
6367 | 6384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
137 | 142 | | |
138 | 143 | | |
139 | 144 | | |
| |||
385 | 390 | | |
386 | 391 | | |
387 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
388 | 405 | | |
389 | 406 | | |
390 | 407 | | |
| |||
581 | 598 | | |
582 | 599 | | |
583 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
584 | 610 | | |
585 | 611 | | |
586 | 612 | | |
| |||
593 | 619 | | |
594 | 620 | | |
595 | 621 | | |
596 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
597 | 627 | | |
598 | 628 | | |
599 | 629 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
385 | 388 | | |
386 | 389 | | |
387 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
0 commit comments
Comments
(0)