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 1wA74U-0024fI-05 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 14:06:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wA74R-000OrF-1z for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 14:06:24 +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 <3danissimo@gmail.com>) id 1wA74R-000Or7-13 for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 14:06:23 +0000 Received: from mail-yw1-x112d.google.com ([2607:f8b0:4864:20::112d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from <3danissimo@gmail.com>) id 1wA74P-000000012mN-42Nc for pgsql-hackers@postgresql.org; Tue, 07 Apr 2026 14:06:22 +0000 Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-79ee5037d44so69723147b3.0 for ; Tue, 07 Apr 2026 07:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775570781; cv=none; d=google.com; s=arc-20240605; b=CtDKvKcYqjHu5pBm+0WLxYLbhnYZQY1672FNDNjzkNU7lUIWbBS+tBqH3X6YUjmpXt ia+cs6rRe5l+GaXtWWCaO/u05B9/PEOYN/9kMRHXbnyig+oUotI4TCo14WZgzxiEaL/n iwYlzNfLoA77Tgmj/VIKOLukCq0r6qOqU8E8gGe+Vz4IiLaFMcOjZPP3dsYG8aDJ9EYb QBocm2pTWCw9wzG0aK5PRVPVI52Zoix2YjafOyQpGiMzzh05rxTXLYfJvIBf09auFm0L 4LQdvAKb/pqCMohIyXbenIEX26KABH8gkC3lyaZDzQ3kIY8ETn4vKv6CVFXfuw+j+JmR uaCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XhP/Jgt+IJr3xZ8kLMMclG8eAcIICTWtQaUpWxKgm0U=; fh=mipWfhvDjqZzMK5p3NJ89QzSf/VQPG7MxRT+grYjVDs=; b=BLgTGwOlMex+tI29WRFcJOxr+K0wt+FVDCTP/13XaLBm321Slht7UvLk4oX4r8klkv Hn+AlaMFK3WE8IKcHnFEui8AdxQR5ydzdaKpJxgQqO8vFL/1cH/qTPWPk6U6FXWe2y+f dFkqzW7Wtmd7Ec7MkfNH1asltpBd3zj+HtylocXZ2wSYTnv3SdT9tikz0tYHC6RcoKKf HckkXw1XALyPlrXREZh/Ydo7+QdwGjsYrSFSjJm8rOSj8MRdkMFPhX1AkOl8gokquueE iKJY+bupiGRKD7Dla1+q0FV1pI4sOS6vqGo00vZureo1KqcOGRvQKTBhJKI/UUEQ5IZq HrNg==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775570781; x=1776175581; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XhP/Jgt+IJr3xZ8kLMMclG8eAcIICTWtQaUpWxKgm0U=; b=bGGbp6coqh6gzyJuROapTbZN8aK8vgK/I32yO2Oc9pXkBrtt+no+ZewIKKcuFbkoXs AmfKxvpAkM07GiDMh13ataMhNqOzBZaIPXjzoCkBvd8idg24Y5bZjy9Jg1Qz582y9CKR u/tQdm73ED9RVdnsF/KLnAhh7xnoSD45drVYGGNkvY5IpDLvloW3VNi7qrvwM6PJ2RQW YPMqf7+VKsTPV6XAY6Bre+Jqb2Wetm27PME+jH3NGuhhMxUi6HPUtivqy8FUKhh5xlYA Giq4fDSKI1XL7Af9LqDZZvlnZkQjw4o1KN8EZocP3ikh//Ieg1HGd5tsjC3NhMA5Nbay gcQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775570781; x=1776175581; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XhP/Jgt+IJr3xZ8kLMMclG8eAcIICTWtQaUpWxKgm0U=; b=YmkAhLu5v7W/8RYmggbOEcFcDq2t/ColEwO6uKSuipBK7nSxDgm/j233Z8IbaX1kMO 13+2f1vxC7HSchTIA/CjwXVPEQJISS0Z0vAMPVYH5+/xIN+mWaA1GIv+C4xQCu0LoHsg vg5B0k/oetDQ6bBniQrirsoRK8SNARTAmgr0ApRpigpeZ8VEyZiqmKutdYxmvnuCKEHO 0HCtF7zXsPO4H0QB1Q2oo8IYd07anSlH4ErnqIlCynRiuQaRQhnzNxVW2v8OFeKum7rF A5RZr5t/GahlKzZPsBqnPMMNQd4/xbl5ZYT5+Ybg7hipUczM6RsJRQBGvNgkFJHwYKyk h9kw== X-Forwarded-Encrypted: i=1; AJvYcCW7DHnT2maamaQz/a/Gkhh85uL9BBZChObdJmtIq4Ehoihhtchg3zcvGEnhW68IvxsbTfrIjMo1hCfL/ffP@postgresql.org X-Gm-Message-State: AOJu0YwSTKbhtzTYyzV/qciRpEKX3WEcBMehMFzYCSXb0GJyPpQ7yiPB CbGQ4Ypcnx8rLMsVm6PXpcVTlljUmLNTDS7kVd82YTc6E8DtqD106YL61yQr8pO+DWJ7OtmCiak hGIqrSnG+7N/YYzuAsKsqSGcMWFpQWWA= X-Gm-Gg: AeBDietghvznobnKry8qPWNIMrCdG/69YkQ8AGFmU7BhzrRSjDFzuJox69HF99KBEQg TxMpFVnTI55hZtEM3IWCWZ9RkEp6QPi+On9sckCWm4EFjdap8hyqzXAeQQv19UPgDolX9KLiihx QOTSzTHotRqvdNvTQiBI5WKdZk5INppgG4lL7eK3qqVd/dTA3HJE5K4FtVBxVoS406+f7ocNxZS uhDhe+yms8F1RBKklJl+PTDfzSsQunTM2xC9WQq4lWuoIbXV4Mu92L2/XIyZRGqbp2S8iVlQ9l5 6jA0soG/ X-Received: by 2002:a05:690c:3481:b0:79b:e24e:e308 with SMTP id 00721157ae682-7a3bc106b46mr161163417b3.8.1775570781137; Tue, 07 Apr 2026 07:06:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniil Davydov <3danissimo@gmail.com> Date: Tue, 7 Apr 2026 21:06:09 +0700 X-Gm-Features: AQROBzBrcH39pgHyFBM837XotqBL1LUW-RmyiGYpcOWvNSMG_uBSI_Kfz2FwzVs Message-ID: Subject: Re: test_autovacuum/001_parallel_autovacuum is broken To: Masahiko Sawada Cc: Sami Imseih , pgsql-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Mon, Apr 6, 2026 at 7:24=E2=80=AFPM Sami Imseih wr= ote: > > 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 par= ams". Good catch! On Tue, Apr 7, 2026 at 2:29=E2=80=AFPM Masahiko Sawada wrote: > > On Mon, Apr 6, 2026 at 7:24=E2=80=AFPM Sami Imseih = wrote: > > > > 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. > Yeah, we only need to ensure that there will be free parallel workers in bgworkers pool. Since only autovacuum can launch parallel workers in this test, I think everything is OK. The proposed patch fixes the problem, but I am thinking about possible new tests for parallel a/v. What if some of them will require both injection po= ints and wait_for_autovacuum_complete call? If the reloption could override the = GUC parameter, then we could disable parallel a/v globally and turn it on for t= he particular table. In this case we can avoid such a problem. -- Best regards, Daniil Davydov