pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use DELETE instead of UPDATE to speed up vacuum test
Date: Mon, 29 Jul 2024 19:46:53 +0000
Message-ID: <E1sYWKb-001mzX-ER@gemulon.postgresql.org> (raw)

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.

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/924a08b76f5d9f89b2569caed26113f0a020c644

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



view thread (3+ messages)

Message-ID: <E1sYWKb-001mzX-ER@gemulon.postgresql.org>
Permalink:  ../E1sYWKb-001mzX-ER@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sYWKb-001mzX-ER@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use DELETE instead of UPDATE to speed up vacuum test
  In-Reply-To: <E1sYWKb-001mzX-ER@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox