Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wAtfk-000Xx1-11 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 18:00:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAtfi-006y2Q-1H for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 18:00:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wAtfh-006y28-3B for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 18:00:07 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAtfg-00000000CZd-3Gv5 for pgsql-hackers@postgresql.org; Thu, 09 Apr 2026 18:00:06 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-43cfde3c3f3so1123281f8f.3 for ; Thu, 09 Apr 2026 11:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775757602; x=1776362402; darn=postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=JaCWpjWZ6xQz/N8tE2f5ZVIRnWnDq+IRLSYm3uep25g=; b=QOQxqM8IqaRzVSCLe2gXLyqLpFw/7ue8vmeEc10JYfxkBf3Q4mRhiQ1K2+wUdEbZhP loW07avBHJOoEkswBlr/Z2qDWQtdvccpKz1NyEMTBxMsmCcFw8RPqJHQE3ieEXGvjPob N8NflsARLbKXwi3w5hEwClAHQdUMF/UJxEtnIbGa0dDTTMmrAgWcUPT4dR0F66zaXR+d 2BtInWDesQPrm39vXoYcok5rJeB/o52kMSrehRfDYgJOAOEU/1soLeJEBErbk9SdUBuQ nmxOTuKBgAWOMPwdtuJIyrQimt0lhIiuNjmBoegS1QJYmfZrdRQPvgxFGzrz2w/1XD6C g7Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775757602; x=1776362402; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JaCWpjWZ6xQz/N8tE2f5ZVIRnWnDq+IRLSYm3uep25g=; b=Wq2rV9H7I5bVRsrt7w6EeUyYlH3uI36LCkOLSBC893VMPI4sbNHpsbdqP+t4LgE4kv N6FQfqapZJnEYbESLa2q2rD7qdoJ/y84EUFO6s4vImQ/RpYiEZuFaU6vOalNgXlropHp QSVClk0tiF20THsjG/NVT/pp5bxtoQ/UuJF7WNrLQ7liaD/CiG4mmPKC524PgM0aczGB 5u2ne46fBZ/8zuIXZRjWzet6mjM+JJujVHgl98bD876635aKZSKThRzGB2WWwnnZWZRs zjN02LDaMhlkQ0j/pR5zJWunLhPEQIrdaer76t+4X21I+9y7f6S7koiqsyRWK+1LKxXs jK+w== X-Forwarded-Encrypted: i=1; AJvYcCUcpQ6oqdBMNItGXzf5JahRkvmlRR+Au6utOMgqg11uIISHMoG7nVBKeWFXVue4N6TiSsk5hn4PkSHVk9HA@postgresql.org X-Gm-Message-State: AOJu0YyAs3te79R2nO8S5v2/MUIMorDkm7P2JWKfioO20FqPaPwe21Sf 5hrAb1kMcyUfb+yxROl9VyU2YMtMA/xoUv7wW1qjW2i37Hh9vnF8cR/3 X-Gm-Gg: AeBDietlEtJ8qL2SdslLU3/4SrufAL9lVyTMY3iH0U8D/Pku7bgc347zR/S4aFUTYuX z+DVn9B4UFzqckHfVjoL0hcgxm8qv9M2MgKSDwBUUF1lB0dSqkesmsgy2lEeQxZxpL+2NZ5VozD HydrswE5Q/FNQRQlYCWCG7jKxyirZit/m5IAwBysZ9MEGNKn3D6HAd3hRJx5jekAlgRj558dws9 ncy5dCEat+XSL2uzHFBPM2jz4SUyElchZ5a++ipGDtjs/w0PfbzR1DEzu00WwJgOMrQ9Y91fET/ uMPhNVjHLogYnOLwxya4ut0icFZaPaEDOvCVRso2mH+mYif2Nr1ymejLxeQgGv2uf+jE8egzfNu STLGCtP6ZBS7aZlU1os+Hw/Fm0/oj/C+bJRaT7Gaa26i+oRUROMvEe+B5HIQfSuqfaKgJ9JpkLN wYK9h8DkyxKnc5cNTc0tF+kenc2hMhYUw3+4k= X-Received: by 2002:a05:6000:4285:b0:43c:4810:dc4a with SMTP id ffacd0b85a97d-43d642d3630mr52702f8f.38.1775757601872; Thu, 09 Apr 2026 11:00:01 -0700 (PDT) Received: from [192.168.0.50] ([89.149.68.143]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d63de343bsm516194f8f.8.2026.04.09.11.00.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2026 11:00:01 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------rymO0l9MVXTDK5yRekAtfKNb" Message-ID: <525d0f48-93f7-493f-a988-f39b460a79bc@gmail.com> Date: Thu, 9 Apr 2026 21:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: test_autovacuum/001_parallel_autovacuum is broken To: Sami Imseih , pgsql-hackers Cc: Masahiko Sawada , Daniil Davydov <3danissimo@gmail.com> References: Content-Language: en-US From: Alexander Lakhin In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------rymO0l9MVXTDK5yRekAtfKNb Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, 07.04.2026 05:23, Sami Imseih wrote: > I noticed that the test introduced in parallel autovacuum in 1ff3180ca01 was > very slow, but eventually succeeded. I tracked it down to the point in > the test that is waiting for "parallel autovacuum worker updated cost params". I've found another issue with the test manifested on buildfarm, at least at [1]: [06:54:07.738](4.121s) not ok 1 [06:54:07.769](0.031s) #   Failed test at /home/bf/bf-build/flaviventris/HEAD/pgsql/src/test/modules/test_autovacuum/t/001_parallel_autovacuum.pl line 133. ### Stopping node "main" using mode fast The corresponding test code: # Wait until the parallel autovacuum on table is completed. At the same time, # we check that the required number of parallel workers has been started. wait_for_autovacuum_complete($node, $av_count); ok( $node->log_contains(         qr/parallel workers: index vacuum: 2 planned, 2 launched in total/,         $log_offset)); but regress_log_001_parallel_autovacuum contains this string: 2026-04-07 06:54:07.736 CEST [1825954][autovacuum worker][102/5:0] LOG:  automatic vacuum of table "postgres.public.test_autovac": index scans: 1 ...     parallel workers: index vacuum: 2 planned, 2 launched in total though the timestamp difference is only 2 ms. I tried the following modification: @@ -1222,6 +1222,7 @@ heap_vacuum_rel(Relation rel, const VacuumParams *params,                               (double) dead_items_max_bytes / (1024 * 1024));              appendStringInfo(&buf, _("system usage: %s"), pg_rusage_show(&ru0)); +pg_usleep(300000);              ereport(verbose ? INFO : LOG,                      (errmsg_internal("%s", buf.data)));              pfree(buf.data); and it makes the test fail for me on each run. Could you please look if this can be fixed too? [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=flaviventris&dt=2026-04-07%2004%3A41%3A09 Best regards, Alexander --------------rymO0l9MVXTDK5yRekAtfKNb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hello,

07.04.2026 05:23, Sami Imseih wrote:
I noticed that the test introduced in parallel autovacuum in 1ff3180ca01 was
very slow, but eventually succeeded. I tracked it down to the point in
the test that is waiting for "parallel autovacuum worker updated cost params".

I've found another issue with the test manifested on buildfarm, at least
at [1]:
[06:54:07.738](4.121s) not ok 1
[06:54:07.769](0.031s) #   Failed test at /home/bf/bf-build/flaviventris/HEAD/pgsql/src/test/modules/test_autovacuum/t/001_parallel_autovacuum.pl line 133.
### Stopping node "main" using mode fast

The corresponding test code:
# Wait until the parallel autovacuum on table is completed. At the same time,
# we check that the required number of parallel workers has been started.
wait_for_autovacuum_complete($node, $av_count);
ok( $node->log_contains(
        qr/parallel workers: index vacuum: 2 planned, 2 launched in total/,
        $log_offset));

but regress_log_001_parallel_autovacuum contains this string:
2026-04-07 06:54:07.736 CEST [1825954][autovacuum worker][102/5:0] LOG:  automatic vacuum of table "postgres.public.test_autovac": index scans: 1
...
    parallel workers: index vacuum: 2 planned, 2 launched in total

though the timestamp difference is only 2 ms. I tried the following
modification:
@@ -1222,6 +1222,7 @@ heap_vacuum_rel(Relation rel, const VacuumParams *params,
                              (double) dead_items_max_bytes / (1024 * 1024));
             appendStringInfo(&buf, _("system usage: %s"), pg_rusage_show(&ru0));
 
+pg_usleep(300000);
             ereport(verbose ? INFO : LOG,
                     (errmsg_internal("%s", buf.data)));
             pfree(buf.data);

and it makes the test fail for me on each run.
Could you please look if this can be fixed too?

[1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=flaviventris&dt=2026-04-07%2004%3A41%3A09

Best regards,
Alexander
--------------rymO0l9MVXTDK5yRekAtfKNb--