File tree 2 files changed +8
-6
lines changed 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,11 @@ BitmapHeapNext(BitmapHeapScanState *node)
207
207
208
208
BitmapAdjustPrefetchIterator (node , tbmres );
209
209
210
+ if (tbmres -> ntuples >= 0 )
211
+ node -> exact_pages ++ ;
212
+ else
213
+ node -> lossy_pages ++ ;
214
+
210
215
/*
211
216
* We can skip fetching the heap page if we don't need any fields
212
217
* from the heap, and the bitmap entries don't need rechecking,
@@ -238,11 +243,6 @@ BitmapHeapNext(BitmapHeapScanState *node)
238
243
continue ;
239
244
}
240
245
241
- if (tbmres -> ntuples >= 0 )
242
- node -> exact_pages ++ ;
243
- else
244
- node -> lossy_pages ++ ;
245
-
246
246
/* Adjust the prefetch target */
247
247
BitmapAdjustPrefetchTarget (node );
248
248
}
Original file line number Diff line number Diff line change @@ -2812,6 +2812,7 @@ update ab_a1 set b = 3 from ab where ab.a = 1 and ab.a = ab_a1.a;
2812
2812
Index Cond: (a = 1)
2813
2813
-> Bitmap Heap Scan on ab_a1_b3 ab_a1_3 (actual rows=0 loops=1)
2814
2814
Recheck Cond: (a = 1)
2815
+ Heap Blocks: exact=1
2815
2816
-> Bitmap Index Scan on ab_a1_b3_a_idx (actual rows=1 loops=1)
2816
2817
Index Cond: (a = 1)
2817
2818
-> Materialize (actual rows=1 loops=1)
@@ -2827,9 +2828,10 @@ update ab_a1 set b = 3 from ab where ab.a = 1 and ab.a = ab_a1.a;
2827
2828
Index Cond: (a = 1)
2828
2829
-> Bitmap Heap Scan on ab_a1_b3 ab_3 (actual rows=0 loops=1)
2829
2830
Recheck Cond: (a = 1)
2831
+ Heap Blocks: exact=1
2830
2832
-> Bitmap Index Scan on ab_a1_b3_a_idx (actual rows=1 loops=1)
2831
2833
Index Cond: (a = 1)
2832
- (34 rows)
2834
+ (36 rows)
2833
2835
2834
2836
table ab;
2835
2837
a | b
You can’t perform that action at this time.
0 commit comments