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.98.2) (envelope-from ) id 1x9HsM-00000001stT-1Bve for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Sep 2026 07:58:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x9HsL-00000003cuy-2JmK for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Sep 2026 07:58:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x9HsL-00000003cup-0Gjy for pgsql-hackers@lists.postgresql.org; Wed, 23 Sep 2026 07:58:45 +0000 Received: from mail-dl2-x0e.google.com ([2607:f8b0:4864:38::e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x9HsI-00000000q2M-3Eib for pgsql-hackers@lists.postgresql.org; Wed, 23 Sep 2026 07:58:44 +0000 Received: by mail-dl2-x0e.google.com with SMTP id a92af1059eb24-144df39b6cfso480078c88.1 for ; Wed, 23 Sep 2026 00:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790150319; x=1790755119; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=+da4sPqRmazyKB4+ORsCwVUlJ/EePCpF9nTUWa33lNw=; b=QPe9Kx3BKuAvdBxNnBea4PZNknVMiL+D+ETfIlG+EJeEfPlMGP0R/7i5qHJY1H3KI0 6RGUp8gaB8N4DyzBBAgRE5p5ZODeyIUHcayfz5NM1mGVjyK0QQwJZ8YkkRL9rddTNdiM pMpSEVmP1e1VYza7CowdM0Wm7Iubl2ZQPztMmavcLxbKNikM2hcW5j3oTx5jF6rcArzO rDgIsadL4HP7T7FfNlMa2A3qiggL7QgMv7GSXaGbIRbXvPVu8x4sxk6cqcrwUMrH1BAf VWmuyrXFEEphIK4rRIKbuRrHdnt1JjLiPYEsH7dYysBqce0UCDVk5nVo059/mDThgW6m 83oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790150319; x=1790755119; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+da4sPqRmazyKB4+ORsCwVUlJ/EePCpF9nTUWa33lNw=; b=dk+pakhSZeiHXqXPBu3duI0dLSooVSGzA/QPeW8jmTvUSbazLaOAb4t4QV9KIAX3cK rUSHeG1yWRSrjgM4vruhlmserM28BrYA8W9SVaI4qat/lc9ULa23btIUW88G9qiXq4Zg PqL5H7dWTBP8Il5wVmOvLn8M4p8Oy3bjuDSHzYN2nbCn4asg+944sBYknE5WmUskiQZd 2jqotSjAq/g47cIVCZmXjteqk6Z2H9az3tZcEKMgxfEt5ChMNXlrcMadkFesMGCxibiZ Db2ComyIBDe36nHRNpJZeROLX9FCLLyIbTZEt4gd0wq5Q3AbV5i0KzV2BRtW0I+QtZ7x 7SaQ== X-Forwarded-Encrypted: i=1; AKwUvBxUbBb60kUh8qNyIgEFK6VRMmcAjswfi2rWBY+QCueT/XanJ2gWQ6VCVai36o91tVr1eebkNxZgaxT433Ks@lists.postgresql.org X-Gm-Message-State: AFuF++nRQC16ux0ykIzXdY9cGlS+VXFwP8sBbnoAWsJ8V4sbEyb+X997 mH1aKcN2Nwy1MHy5tNzqPLcDA1o5Tp9MjBJZ2kfBhIajgHIuDJqgIOcd X-Gm-Gg: AYBFou1z7SnR1aYrx9eELXOxfaBAEY6Gz87Y4w89tI/R0GKNSeHI4Aiu4cUX5NBuG6J Tyqa++/JXvxerap2p1xN+fF5PAKQQsGzlag4ZowkhUmake0V12yoa/k8RVBjLg2K6G5x2kgvn+g cSB02RXHOf2TIyrXLX7NL4jWnc7TDAWlEvDShJpuN3pEUIXG8mIaN+AAyVDa4CEe8UMt30INrYe hiJxOvlk5S9K3T5fTfmF8SNNLDL1WvQAER3KIErrcmKiyEDNkgx9DpMl3wpCOSR8AF7szX6S0nu uAVeRy3FQmUpzqd5oHvfCWpdUP0BK59GbxdpN4PBGv2rdQIC6m0559wd+9DD1x7EIgvwbUBWsmd XJfevXBbMFFsbl2gegcwRSw2imTbJWlRaud0BuUVwElCLvlee2Ic2R+l8t1touMMMgM9jgjQ+6m vkmo0rf6ubRRczfaVxTmAf2kAyvK/DWlHoItpNRpxvUbhqE3McZzY2sxdxczG42tfGD5Mf7uEmm CYBLEi07FRRSEM= X-Received: by 2002:a05:7022:3c85:b0:143:33de:97ae with SMTP id a92af1059eb24-144f90e8a50mr2024230c88.20.1790150319210; Wed, 23 Sep 2026 00:58:39 -0700 (PDT) Received: from smtpclient.apple ([128.14.31.146]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-144f983d73fsm5794595c88.6.2026.09.23.00.58.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Sep 2026 00:58:38 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.11\)) Subject: Re: [PATCH] Use bounded GIN pending-list cleanup in parallel autovacuum From: Yuhang Qiu In-Reply-To: Date: Wed, 23 Sep 2026 15:58:25 +0800 Cc: Andrey Borodin , pgsql-hackers mailing list , PostgreSQL-development , Peter Geoghegan , Masahiko Sawada Content-Transfer-Encoding: 7bit Message-Id: <86E8514B-35DD-42F3-9386-360595E94032@gmail.com> References: <452203E2-8B6B-4610-B184-684B04D4F26B@yandex-team.ru> To: Jingtang Zhang X-Mailer: Apple Mail (2.3901.100.1.1.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Jingtang, The fix in v2 LGTM. I used local injection points to test both ginbulkdelete() and the ginvacuumcleanup() path where bulk deletion was not performed. The test ensures that a parallel worker handles the GIN index. It pauses cleanup at the original tail page, after releasing the buffer content lock, then appends new pending pages from another session. Without the fix, both paths continue until the pending list is empty. With v2, both leave new pending pages behind, matching serial autovacuum. Manual parallel VACUUM still empties the pending list. > Do you have any ideas for a simpler way to test this? I haven't found a simpler, reliable way to test this without adding injection points either. Given the extra machinery needed to test such a small fix, I'd lean toward leaving it without a regression test. Best regards, Yuhang Qiu