forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7c3e803
committed
Add a few entries to the tail of time mapping, to see old values.
Without a few entries beyond old_snapshot_threshold, the lookupwould often fail, resulting in the more aggressive pruning orvacuum being skipped often enough to matter. This was very clearlyshown by a python test script posted by Ants Aasma, and was likelya factor in an earlier but somewhat less clear-cut test case postedby Jeff Janes.This patch makes no change to the logic, per se -- it just makesthe array of mapping entries big enough to make lookup misses basedon timing much less likely. An occasional miss is still possibleif a thread stalls for more than 10 minutes, but that does notcreate any problem with correctness of behavior. Besides, ifthings are so busy that a thread is stalling for more than 10minutes, it is probably OK to skip the more aggressive cleanup atthat particular point in time.1 parentd34e7b2 commit7c3e803
2 files changed
+26
-13
lines changedLines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
| |||
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
246 |
| - | |
| 246 | + | |
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
| |||
1643 | 1643 |
| |
1644 | 1644 |
| |
1645 | 1645 |
| |
1646 |
| - | |
| 1646 | + | |
1647 | 1647 |
| |
1648 | 1648 |
| |
1649 | 1649 |
| |
| |||
1720 | 1720 |
| |
1721 | 1721 |
| |
1722 | 1722 |
| |
1723 |
| - | |
| 1723 | + | |
1724 | 1724 |
| |
1725 | 1725 |
| |
1726 |
| - | |
| 1726 | + | |
1727 | 1727 |
| |
1728 | 1728 |
| |
1729 | 1729 |
| |
| |||
1750 | 1750 |
| |
1751 | 1751 |
| |
1752 | 1752 |
| |
1753 |
| - | |
| 1753 | + | |
1754 | 1754 |
| |
1755 | 1755 |
| |
1756 | 1756 |
| |
| |||
1763 | 1763 |
| |
1764 | 1764 |
| |
1765 | 1765 |
| |
1766 |
| - | |
| 1766 | + | |
1767 | 1767 |
| |
1768 | 1768 |
| |
1769 | 1769 |
| |
| |||
1777 | 1777 |
| |
1778 | 1778 |
| |
1779 | 1779 |
| |
1780 |
| - | |
| 1780 | + | |
1781 | 1781 |
| |
1782 | 1782 |
| |
1783 | 1783 |
| |
1784 | 1784 |
| |
1785 |
| - | |
| 1785 | + | |
1786 | 1786 |
| |
1787 | 1787 |
| |
1788 | 1788 |
| |
| |||
1793 | 1793 |
| |
1794 | 1794 |
| |
1795 | 1795 |
| |
1796 |
| - | |
| 1796 | + | |
1797 | 1797 |
| |
1798 | 1798 |
| |
1799 | 1799 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
22 | 35 |
| |
23 | 36 |
| |
24 | 37 |
| |
|
0 commit comments
Comments
(0)