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 1wAv7N-000ZP7-0t for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 19:32:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAv7L-007WA2-15 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 19:32:44 +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 1wAv7L-007W9u-0B for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 19:32:43 +0000 Received: from mail-yx1-xb12b.google.com ([2607:f8b0:4864:20::b12b]) 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 1wAv7J-00000000DHn-46av for pgsql-hackers@postgresql.org; Thu, 09 Apr 2026 19:32:43 +0000 Received: by mail-yx1-xb12b.google.com with SMTP id 956f58d0204a3-6501c9903edso1473806d50.1 for ; Thu, 09 Apr 2026 12:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775763162; cv=none; d=google.com; s=arc-20240605; b=Jy0H/pwt20Xd+Q8j7pahNUWSTqDZaLWN47ITeCP/1FZ1KZ/fwz7xvgwMtYGVgir7T+ dcATcahCHOQgDziv9mBhp8jeyeNgX+IXsH7zJIN6VbyISOYEUNv+5xfNyWIl44MfVczL pY7PnzWU8BynBYwajuedrUGe7wNfDHfF/MgCmmd399EG4pCGiYnP5EvvNDOnvWcnSWEZ XITC9SxArJX1WRpLCfbCEkGmzNZ0xTZOdXAwh8FJNcyy+UWeKiS0zOv0iVI9LJbU2fvs GpI9EBSnf3FMIHpOkB3WFUKoBSpu/u+13jp0T+trv+iKJOtEJ9wv31zTxPf6wb7DGBs0 WBGg== 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=Tt5zaXDjgf+AXRT6ZYlFgMYth2NkMIoogomKZJfHzSE=; fh=soT1Xd9WkqZNjFOEBXXHzLO14sjGwEzmkpC7n7g2swo=; b=EKMPbqbk/XIRydobtnJ6tny0AecBERLtM7ksFNdKenuBAHGQSlGCuMl2TwVizLjXtA kTU2I0TSNXeZ32FgA84x5dAYbyrQjIgKyp+kMm7fSl02mutxsaMKUStwMyEa/htgoebO DAXhFz0A8OBfm7cUZIMUyc/QsYPR8ApCmoiZe36kdty0/5YQxm0HLWoR79TDwrMJ4ZAl 0EMtrVOKDQwAtvUiFVABGrBCf9inERMczt1Lf/C9xTyn4EdInU7THk6UpAguFR7gFeWq 9a2CU6MJ4lW6XyBNsgV3EHXq0o1amqbUGqXAP2nA7tZ4LZqOsYfG0wsMArhiwaPuW7WY 1mog==; 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=1775763162; x=1776367962; 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=Tt5zaXDjgf+AXRT6ZYlFgMYth2NkMIoogomKZJfHzSE=; b=oflwWyFk38dUe3DuaDIIvRo6jIFuKxtFRugJKHpdZsDdCS0O69PNwbVLXcEa2GLD7a 1RkgBieKa4x5Bi6IU6IF3nZzVG2FLUG3a6OimJ4jfH+RguSlEhUpjgwRYeVZ8/IXRrPC whQrXlvAWEnhcOSpaQN5GOTEo/CEaQx1J3gOChqZ3m19Fep0TsMjlx2N214lXG1Zp5HK B4EQsshICZm2jbEXrbvGuAPQVS7QoESGKT7Y6pucq0Zn8PYs1AJumTnFdwx0MJN2Sfgl la6A9datPxdQSlAWWh3/OnizJpHfOxpvEU6z63PgMuqJn1URxOnSbw4khAprPpK8Cra7 M2OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775763162; x=1776367962; 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=Tt5zaXDjgf+AXRT6ZYlFgMYth2NkMIoogomKZJfHzSE=; b=ju0E3maETDZf/XXbvEYQJruUkx4RHv9+NpdXP82ZII9DUd2xhk60p9C81ZpSUGFAKE 2dPSOAwtzUt8Aj1LCYL7NeOycwKWAggyu33iCVv8JaJvkFShCR/SqYE8ioqD6PjOHcwN OHrZGHPzt2CR4jGTo9w2pDUHywuXTPZPYNayxmnjVCJbDiGRZDrDp0kpP/WZu6BVSoRo zpwZp+pTnP5jjvdKcvgWsrYOd0PQOZH1Uts1+22WKyA5B+sUpi2yF5SCmhoHazPaJNv+ iP0JvVd61bwuyV6fPCjrW0pVPrlUbaYAlK4bmtQSOLY1sMZpNiyFeofX86kbAQ9yxevG KfyQ== X-Forwarded-Encrypted: i=1; AJvYcCXa7v0dtuyB7hqP2qT/1uccOBJQnDJrHAlyRcjWfAypSbh4enpU2gEOTcoDGM2fSp+ZYhV/fiwYsSxfUaoN@postgresql.org X-Gm-Message-State: AOJu0YxlbJZHJVTTwRGtUMwOfDb3359iWCqB7dzW6YuwRwEZUPNQ7Ywy ZFuLiYgiKRRMv3vH77A5H0x5I7H/8PnQ1OAO6Av3yS9rtDQD7J+1lYLDwx02Gje5Lg+O8hV6nF8 oPBa1yMxJjvYiQKnNLsNuUECQc2lafTs= X-Gm-Gg: AeBDievEiQwwc5MI+S8q1492lq9q9/CoLWJo4YjJLHFyKpwXuLdTNUKZ+LnCrzjUonJ 2AeQ+dOGFECUSXKCgCnJTOu91QRzups75wGuvQa8Gj05dJcxYpkG+91P/ZqwPhDYZsfJ/bAxAt5 pW4s4uzFZP6sEMt5qJ8m1XpuiG1SDhleue2y7ZsXjC25pnluPXrC8gM5dKh4R7yRJXLniQS7HTt CODNztMs1ugofiPU/8ZUrWe7VspovHtEwEnGkubT0dEB2lmokDcwYKbJ3ETYPXKqDFK4rjMR0VR 27zFP/c= X-Received: by 2002:a53:d150:0:b0:650:1b68:8750 with SMTP id 956f58d0204a3-65198a2daa6mr242036d50.14.1775763161629; Thu, 09 Apr 2026 12:32:41 -0700 (PDT) MIME-Version: 1.0 References: <525d0f48-93f7-493f-a988-f39b460a79bc@gmail.com> In-Reply-To: From: Daniil Davydov <3danissimo@gmail.com> Date: Fri, 10 Apr 2026 02:32:30 +0700 X-Gm-Features: AQROBzBqTJzGFchpAiV04pT9ZRSwcieu_8gCkI-cZXD2cXYuGKZJ3EybrjgoI9U Message-ID: Subject: Re: test_autovacuum/001_parallel_autovacuum is broken To: Sami Imseih Cc: Masahiko Sawada , Alexander Lakhin , 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 Fri, Apr 10, 2026 at 1:32=E2=80=AFAM Sami Imseih w= rote: > > > The root cause seems to me that it's not guaranteed that we can see > > the autovacuum logs after checking the statistics (i.e., > > pg_stat_user_tables) as we update the statistics and then write the > > log. > > > > One way to fix the test is to replace log_contains() with > > wait_for_log(). We can also remove wait_for_autovacuum_complete() > > logic altogether. > > +1. I was going to reply with exactly this. Attached is the fix. Thank you for the patch! I agree with this approach. Optionally, we can change the comment above to something like this: # Wait until the parallel autovacuum on the table completes and reports the # number of launched workers, which must correspond to the value specified = in # the reloption. IMHO it better reflects what is going on. -- Best regards, Daniil Davydov