Re: test_autovacuum/001_parallel_autovacuum is broken
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: Sami Imseih <samimseih@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>,
Daniil Davydov <3danissimo@gmail.com>
Date: 2026-04-07T07:28:56Z
Lists: pgsql-hackers
Attachments
- 0001-Remove-an-unstable-wait-from-parallel-autovacuum-reg.patch (text/x-patch) patch 0001
On Mon, Apr 6, 2026 at 7:24 PM Sami Imseih <samimseih@gmail.com> wrote: > > Hi, > > 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". Thank you for the report. > > This portion of the test that is waiting for the cost params to propagate to the > workers is getting stuck on wait_for_autovacuum_complete(). At the time > it's stuck the injection point from the previous test > autovacuum-start-parallel-vacuum > is still active on template1 tables. (snip) > I think we can remove the second wait_for_autovacuum_complete() > call in the test, as all we really need is to wait_for_log to guarantee > the cost parameters were updated. No need to wait for the autovacuum > to complete. It sound like a good idea. In the test 2, we make garbage tuples on test_autovac table but it doesn't necessarily mean that autovacuum would work only on that table. Also given that the purpose of this test is to check the propagation works fine, we can verify it whatever tables eligible for parallel vacuum. I've attached the patch, and am going to push it barring any objections. Regards, -- Masahiko Sawada Amazon Web Services: https://aws.amazon.com
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix unstable log verification in test_autovacuum.
- c22d115f1d13 19 (unreleased) landed
-
Remove an unstable wait from parallel autovacuum regression test.
- 8030b839d3d2 19 (unreleased) landed