forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1f4eb73
committed
Fix EXPLAIN Bitmap heap scan to count pages with no visible tuples
Previously, bitmap heap scans only counted lossy and exact pages forexplain when there was at least one visible tuple on the page.heapam_scan_bitmap_next_block() returned true only if there was a"valid" page with tuples to be processed. However, the lossy and exactpage counters in EXPLAIN should count the number of pages representedin a lossy or non-lossy way in the constructed bitmap, regardless ofwhether or not the pages ultimately contained visible tuples.Backpatch to all supported versions.Author: Melanie PlagemanDiscussion:https://www.postgresql.org/message-id/CAAKRu_ZwCwWFeL_H3ia26bP2e7HiKLWt0ZmGXPVwPO6uXq0vaA@mail.gmail.comDiscussion:https://www.postgresql.org/message-id/CAAKRu_bxrXeZ2rCnY8LyeC2Ls88KpjWrQ%2BopUrXDRXdcfwFZGA@mail.gmail.com1 parent34c854b commit1f4eb73
File tree
2 files changed
+8
-6
lines changed- src
- backend/executor
- test/regress/expected
2 files changed
+8
-6
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
207 | 207 |
| |
208 | 208 |
| |
209 | 209 |
| |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
210 | 215 |
| |
211 | 216 |
| |
212 | 217 |
| |
| |||
238 | 243 |
| |
239 | 244 |
| |
240 | 245 |
| |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 | 246 |
| |
247 | 247 |
| |
248 | 248 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2812 | 2812 |
| |
2813 | 2813 |
| |
2814 | 2814 |
| |
| 2815 | + | |
2815 | 2816 |
| |
2816 | 2817 |
| |
2817 | 2818 |
| |
| |||
2827 | 2828 |
| |
2828 | 2829 |
| |
2829 | 2830 |
| |
| 2831 | + | |
2830 | 2832 |
| |
2831 | 2833 |
| |
2832 |
| - | |
| 2834 | + | |
2833 | 2835 |
| |
2834 | 2836 |
| |
2835 | 2837 |
| |
|
0 commit comments
Comments
(0)