forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5853662
committed
Reduce the size of memory allocations by lazy vacuum when processing a small
table, by allocating just enough for a hardcoded number of dead tuples perpage. The current estimate is 200 dead tuples per page.Per reports from Jeff Amiel, Erik Jones and Marko Kreen, and subsequentdiscussion.CVS: ----------------------------------------------------------------------CVS: Enter Log. Lines beginning with `CVS:' are removed automaticallyCVS:CVS: Committing in .CVS:CVS: Modified Files:CVS: commands/vacuumlazy.cCVS: ----------------------------------------------------------------------1 parent48f7e64 commit5853662
1 file changed
+18
-5
lines changedLines changed: 18 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 |
| |
19 | 21 |
| |
20 | 22 |
| |
| |||
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
39 |
| - | |
| 41 | + | |
40 | 42 |
| |
41 | 43 |
| |
42 | 44 |
| |
| |||
68 | 70 |
| |
69 | 71 |
| |
70 | 72 |
| |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 |
| |
72 | 80 |
| |
73 | 81 |
| |
| |||
1001 | 1009 |
| |
1002 | 1010 |
| |
1003 | 1011 |
| |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
1004 | 1017 |
| |
1005 | 1018 |
| |
1006 | 1019 |
| |
|
0 commit comments
Comments
(0)