summaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/option.c
diff options
context:
space:
mode:
authorMelanie Plageman <melanieplageman@gmail.com>2024-07-29 15:37:26 -0400
committerMelanie Plageman <melanieplageman@gmail.com>2024-07-29 15:39:38 -0400
commit571e0ee40ebdaf0c75b11756620c9c9d453cc644 (patch)
tree83e6369db9df8af5a7712f22b066d5148f2721ff /contrib/postgres_fdw/option.c
parent6f6b0f193db4f850a94aeabf363bf03bd0642e60 (diff)
Use DELETE instead of UPDATE to speed up vacuum test
01e2b7f0fd02a44e 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 'contrib/postgres_fdw/option.c')
0 files changed, 0 insertions, 0 deletions