forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7340d93
committed
Widen lossy and exact page counters for Bitmap Heap Scan
Both of these counters were using the "long" data type. On MSVC that'sa 32-bit type. On modern hardware, I was able to demonstrate that we canwrap those counters with a query that only takes 15 minutes to run.This issue may manifest itself either by not showing the values of thecounters because they've wrapped and are less than zero, resulting inthem being filtered by the > 0 checks in show_tidbitmap_info(), or bogusnumbers being displayed which are modulus 2^32 of the actual number.Widen these counters to uint64.Discussion:https://postgr.es/m/CAApHDvpS_97TU+jWPc=T83WPp7vJa1dTw3mojEtAVEZOWh9bjQ@mail.gmail.com1 parentd7db04d commit7340d93
2 files changed
+8
-8
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3635 | 3635 |
| |
3636 | 3636 |
| |
3637 | 3637 |
| |
3638 |
| - | |
3639 |
| - | |
3640 |
| - | |
3641 |
| - | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
3642 | 3642 |
| |
3643 | 3643 |
| |
3644 | 3644 |
| |
| |||
3647 | 3647 |
| |
3648 | 3648 |
| |
3649 | 3649 |
| |
3650 |
| - | |
| 3650 | + | |
3651 | 3651 |
| |
3652 |
| - | |
| 3652 | + | |
3653 | 3653 |
| |
3654 | 3654 |
| |
3655 | 3655 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1817 | 1817 |
| |
1818 | 1818 |
| |
1819 | 1819 |
| |
1820 |
| - | |
1821 |
| - | |
| 1820 | + | |
| 1821 | + | |
1822 | 1822 |
| |
1823 | 1823 |
| |
1824 | 1824 |
| |
|
0 commit comments
Comments
(0)