forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitda9517f
committed
Reset btpo_cycleid in nbtree VACUUM's REDO routine.
Reset btpo_cycleid to 0 in btree_xlog_vacuum for consistency with_bt_delitems_vacuum (the corresponding original execution code). Thismakes things neater.There might be some performance benefit to being consistent like this.When btvacuumpage doesn't call _bt_delitems_vacuum, it can stillproactively reset btpo_cycleid to 0 via a separate hint-like updatemechanism (it does so whenever it sees that it isn't already set to 0).And so it's possible that being consistent about resetting btpo_cycleidlike this will save work later on, after standby promotion: subsequentVACUUMs won't need to clear btpo_cycleid using the hint-like updatemechanism as often as they otherwise would.Author: Peter Geoghegan <pg@bowt.ie>Reviewed-By: Andrey Borodin <x4mmm@yandex-team.ru>Discussion:https://postgr.es/m/CAH2-Wz=+LDFxn9NZyEsCo8ifcyKt6+n-VLyygySEHgMz+oynqw@mail.gmail.com1 parentc431986 commitda9517f
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
634 | 634 |
| |
635 | 635 |
| |
636 | 636 |
| |
637 |
| - | |
638 |
| - | |
| 637 | + | |
| 638 | + | |
639 | 639 |
| |
640 | 640 |
| |
| 641 | + | |
641 | 642 |
| |
642 | 643 |
| |
643 | 644 |
| |
| |||
698 | 699 |
| |
699 | 700 |
| |
700 | 701 |
| |
701 |
| - | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
702 | 706 |
| |
703 | 707 |
| |
704 | 708 |
| |
|
0 commit comments
Comments
(0)