pgsql: Use DELETE instead of UPDATE to speed up vacuum test - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Use DELETE instead of UPDATE to speed up vacuum test
Date
Msg-id E1sYWKb-001mzV-Dt@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Use DELETE instead of UPDATE to speed up vacuum test

e2e992820f104def 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.

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9744fe24118ba5738dda9008533ed00227f5d069

Modified Files
--------------
src/test/recovery/t/043_vacuum_horizon_floor.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Detach syslogger from shared memory
Next
From: Jeff Davis
Date:
Subject: pgsql: Do not return NULL from pg_newlocale_from_collation().