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 1w7uPT-00016t-0d for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 12:10:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7uPQ-00HOKL-2c for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 12:10:57 +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.96) (envelope-from ) id 1w7uPQ-00HOKD-1Z for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 12:10:56 +0000 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7uPO-000000000dB-1GJH for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 12:10:56 +0000 Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-7d8b2703f37so6267927a34.1 for ; Wed, 01 Apr 2026 05:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775045452; cv=none; d=google.com; s=arc-20240605; b=jhQo9yu4NycFe1B3I3mwrJDEu39DnlEuGdAklkiX4RPwzqkJAIWp/T6U+5dI4z5IkZ TY+z+HiAFGkIMdaX1rCpPuzss/uF2HakLvMr4gQK5zMHq0SsQPKOdZWr159l7EE/a78E 4CNC/S1NVRWDxi11xFSvijnJkRke9ijhrSnhiqKvklUQPjVO1ETsbKoSFi+Ur5OJr6/a 1x1QBybMu/D6736qGeHj40NZND2GocRGUzNXmjYHzVzV4SXP3dOUcOhiSSGLk4MhUW4/ rBnTZZ/Qzszgm712ugEA6e3tYFGHhmLAzFR8Csi/thf9BB2wULiGIfSVF9PcOb+WbYMc uAQQ== 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=PogO/6DhF6nG6pkHJE6Ar4pUwWQ8bZdDGHx4w9CFwtc=; fh=cJ/NwB2rQc58QQnQ+d3Y0sWmkFCLKplic+zmoiXnCMM=; b=OJGPt4bcKzv6MMuHMKRyzaPkxjgGqw8ahrF3VhHHMV71P8isJtJ1V1kvo5S0iIyCju OC8l0MdJXCaJR9mDMLD/Fpo9KUEXVVLzPwGEeWBq0/DZmNHfbol247cjcXj/H9itCazM txvvQAKU5vxKFcRcUZnWq1BlQsZExwRW2v4TKxpgrYV1eZMPWGC0vEoQ+/r0r+zQjr2c ma86sAjiteEIAqPve5K/LAglCic+o87xq7Svu/JBxxAZRlyXdQdJJ9bhxr+KP1WTmPT+ ElqV1JTM6jfJvrHE2n5IwWMaE5tArOAuFz8FKGCXS+N362vSlDE8OIOuYVOBZRdUMhsS xFRw==; darn=lists.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=1775045452; x=1775650252; darn=lists.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=PogO/6DhF6nG6pkHJE6Ar4pUwWQ8bZdDGHx4w9CFwtc=; b=ZKiUSRH55jbKhPFplj2Do26gIN2HE4rS+CdZl6PLfM68Awt24S62qr8b3wyS3pb04W vxJlD3ZhM1tohHdljcTKszYZykmVJI/zHyVJkZOP/YEJb7FO5rRpvPools2EmZmv3Uf5 kvM6bIbQdT69SCb5hiRX2ou4R/G0VOQWZq4CoRKv0dhjCQ8uXsN/lWjaso0j/+4ODkFs +JJCMVLZ1tAQbsyA/Inz81Ebi6kpBNq9iJjRQT69/AqLxZY52ntfqvDRq+3PIzrSWhy1 k0TMainRNr06X5mmcSEy++0oHHXcpF0lmR5Df105WprFyaV6mP45S9Dh8kyHkbvuZb9l b4Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775045452; x=1775650252; 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=PogO/6DhF6nG6pkHJE6Ar4pUwWQ8bZdDGHx4w9CFwtc=; b=gFdHOixOjcIle5EC+1IbTA5QInm9Q1p29XOn4xpz2LmWRkB4NFqYHOBEx9fNgy3aKm PPxXpW9LMD1tpdbhNgP2rZUK/Q+hEGPgNKXAkf1OAwhBSPjWwTByPNhtyiqHMjnMi9v2 Rci4NbSC2EQiSdkA8ohE5qfg1etDkq1FjVVCgB6uBl4AFm8jCMo5oKptdEW86KVEksnV oF4hwwMS5Svh7idZ7ljgf26FGKImNnt4RI8Q2kPAKuuleIGAUzKDYU3c1tzCFUW57zNv 3Fp8Twiqpnrs+1Nr+jyhLWyummFsv/1SnqODAX3aIJC8L/V+HkwuYp6Pu280IahnRD9B BkMg== X-Forwarded-Encrypted: i=1; AJvYcCVcNLNU6Vew1s5/bFDDWRpxkJJMs0OumjWY5YDvaga4gBi9ehr6t1xf6wRr1FUWp9xYcDaAC93r2xzwpyn0@lists.postgresql.org X-Gm-Message-State: AOJu0Yxk8dvV9Phhpta8eNswMi9p7YM+3rTZ2wHI3BJLb21FGqrDNvTq f8u//4/FllS3gJVZiCfT3P3JFrGHJKN0tLlCelo/DsCbG1Pv1sYaUjEMmNUMrCLJgEX7QjcGJk0 v/LO1imca48ZSIR2Nv4/vDLKgLtgS7Ew= X-Gm-Gg: ATEYQzw1Gpk3/G14z/QGbN0O5ciVJPoxAystXDP01kDvbnvKihMimDBO/v4XO+nsrIE sBU+KQYy+VvniqV2z+3wFv68Aw4ByPt/7DSYlMk5HpFxm/8jWWyxwbzbFxyno4FE4SY1ljrJDXF rLltH/TI4BwUORexCQTJsuIN0vUtgQc+dqsNRn3TlL1dQNqRCU3Nbsh/aOHMzQPkrZ9Hjgup/2v uB1eXU3ARVIYgkAWR7/NutPzYrhSYmbJWoZXUp+l/fNysXp1YGiaAKiBcZXNbl4gluDBmV6pcke gS6b5MKhl4r9XfYMPJivua8OvWZ3abfpJAe83ekURYYQQ87eXwvdcnxr60NvBfezaiJoe9L6mmK QHDzuA7f3ifA+CVRc X-Received: by 2002:a05:6820:1391:b0:67b:b8d0:a7d5 with SMTP id 006d021491bc7-67fabd02429mr1506989eaf.53.1775045452394; Wed, 01 Apr 2026 05:10:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Alexander Korotkov Date: Wed, 1 Apr 2026 15:10:39 +0300 X-Gm-Features: AQROBzAwWcv6q77P9vvZMp3g4Z9N8byzxEmZnGnc2WliNZcEvGKrxFKNBzScFxI Message-ID: Subject: Re: POC: Parallel processing of indexes in autovacuum To: Daniil Davydov <3danissimo@gmail.com> Cc: Masahiko Sawada , SATYANARAYANA NARLAPURAM , Bharath Rupireddy , Sami Imseih , Matheus Alcantara , Maxim Orlov , Postgres 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, Daniil! On Wed, Apr 1, 2026 at 10:44=E2=80=AFAM Daniil Davydov <3danissimo@gmail.co= m> wrote: > Thank you very much for your comments! > Please, see an updated patch. Thank you for your work on this subject! I've some notes about the patch. 1) The changes in guc.c allows autovacuum parallel leader to accept changes in not just cost-based GUCs, but any GUCs. That should be no problem, because parallel workers have their own copies of GUC variables, but I think this worth comment. 2) Maximum value for autovacuum_parallel_workers reloption is defined as literally 1024, while max value for autovacuum_max_parallel_workers is defined as MAX_PARALLEL_WORKER_LIMIT (also 1024). Should we define max value for reloption as MAX_PARALLEL_WORKER_LIMIT as well? 3) Some paragraphs were moved from vacuum.sgml to maintenance.sgml. It particular it references integer