diff options
author | Melanie Plageman <melanieplageman@gmail.com> | 2024-07-29 15:36:38 -0400 |
---|---|---|
committer | Melanie Plageman <melanieplageman@gmail.com> | 2024-07-29 15:42:56 -0400 |
commit | 924a08b76f5d9f89b2569caed26113f0a020c644 (patch) | |
tree | cc97797623503f03b14fd3bb5176876580e0e816 /src/backend/commands/variable.c | |
parent | 95e805e9cabeaf8bbf5b27e17763b44fbd85a686 (diff) | |
download | postgresql-924a08b76f5d9f89b2569caed26113f0a020c644.tar.gz postgresql-924a08b76f5d9f89b2569caed26113f0a020c644.zip |
Use DELETE instead of UPDATE to speed up vacuum test
d42f60ccf07d89c introduced a test which generated dead tuples for vacuum
with an UPDATE. The test only required enough dead TIDs for two rounds
of index vacuuming. This can be accomplished with a DELETE instead of an
UPDATE -- which generates about 50% less WAL and makes the test 20%
faster in many cases. The test takes several seconds (more on slow
buildfarm animals) because we need quite a few tuples to trigger two
rounds of index vacuuming; so it is worth a follow-on commit to speed it
up.
Suggested-by: Masahiko Sawada
Discussion: https://postgr.es/m/CAAKRu_bWmMjmqL%2BOZ2duEQ80u7cRvpsExLNZNjzk-pXX5skwMQ%40mail.gmail.com
Backpatch-through: 14, the first version containing this test.
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions