forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit571e0ee
committed
Use DELETE instead of UPDATE to speed up vacuum test
01e2b7f introduced a test which generated dead tuples forvacuum with an UPDATE. The test only required enough dead TIDs for tworounds of index vacuuming. This can be accomplished with a DELETEinstead of an UPDATE -- which generates about 50% less WAL and makes thetest 20% faster in many cases. The test takes several seconds (more onslow buildfarm animals) because we need quite a few tuples to triggertwo rounds of index vacuuming; so it is worth a follow-on commit tospeed it up.Suggested-by: Masahiko SawadaDiscussion:https://postgr.es/m/CAAKRu_bWmMjmqL%2BOZ2duEQ80u7cRvpsExLNZNjzk-pXX5skwMQ%40mail.gmail.comBackpatch-through: 14, the first version containing this test.1 parent6f6b0f1 commit571e0ee
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
| 78 | + | |
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
|
0 commit comments
Comments
(0)