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.94.2) (envelope-from ) id 1uZNLK-002S0g-Od for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jul 2025 05:27:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uZNKJ-00DTRA-AK for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jul 2025 05:26:39 +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.94.2) (envelope-from <3danissimo@gmail.com>) id 1uZNKI-00DTR2-UH for pgsql-hackers@lists.postgresql.org; Wed, 09 Jul 2025 05:26:39 +0000 Received: from mail-yb1-xb35.google.com ([2607:f8b0:4864:20::b35]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from <3danissimo@gmail.com>) id 1uZNKH-006KuZ-2a for pgsql-hackers@lists.postgresql.org; Wed, 09 Jul 2025 05:26:38 +0000 Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-e812fc35985so4365229276.0 for ; Tue, 08 Jul 2025 22:26:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752038797; x=1752643597; 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=nLPHNuWKFf6poWdNCYQzFBYEcd5g+xcRTexMTako5zc=; b=d/C2teCmC67YReo0yVLx6U+FWcQh7PGU59oHZzP3HB6ykHw/Q9q/DhyO7HPDzlnHAs yKbVRhjb9Qzol9c75qeUzRuPWg9n/MO2cjIcGdgLhGIArbTMXv2unoOZ2WMHbjZGBzNm P3Yg4Cs7NmIT/XYxmdEZUs0fFtuGkslA8HTYsxY+RW5ZIV/yhPUEkUB+Fn9bNONkKDw/ P5cr8g6mVrwcdrhQpyfUbcQO0+TeT3R+R7rgHS636RbaFN0/MOv5261otmqEr7T4GbiQ BMNzU3xYSqvVJUvDc5ueuE9y72T5MGAW68NOhYW9LOmi70qkLjfvM7CgbPtUM403kK12 pD4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752038797; x=1752643597; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nLPHNuWKFf6poWdNCYQzFBYEcd5g+xcRTexMTako5zc=; b=JFyrnqUdixLkDbAVvpzCNNrOvnd6gKbcV/KGGtI7qRRIzN6k52iFbwGhKlwoBYf3ug tvzbvM8gU7O4Qo4f2eFu3kUviU5nA6+ob3PjSVX8Xz7fCweXv31WH8Rqu1G/Mu0cYzJj hNGwwd36cS3DTaWwkvVqs4AV1Moc/jQLm41KnJ2ImY6GNwP4lYe9imW3Zgb0pUbFI0LF yrhMA1K9XtK3RaJKOZAZqp5Hb/bLuQAb/8qSKdrYjWpIStky6qTFL2C4bQr3/ZTGQI3P ou3AC//GtvBgmxQbBE6By8sZfdUuL2qpMPcBrQW6AeYBwYFa8gXaAUyAUDNFsA65Af9v H3Gg== X-Forwarded-Encrypted: i=1; AJvYcCVN1JxBGjVz101HRFYQCLsZh8PAdrAXlA+moAPtqn70qsOEtuP2vM9OKUHvESIL2Akv9m7Gv7O+SSp4EotY@lists.postgresql.org X-Gm-Message-State: AOJu0YxVRWShmaUMJALXJyFEf1608jCGIT6LSapViY0SaITy9mB+TwGS pbEt14JL0su4NQ5ZDwjOB2YFLpbQ9333bg6aiXhrUL7+L7eLPDnXFlQF1kb1dFIo/D+0YJU3BnO wbx7HX/p6czOPip0rZIs8c1knu07SEhlSYdD2 X-Gm-Gg: ASbGnctbiGXEQYA6TTTunI+7nCHTGSlYeV7zfhddAH2GiezOsH0KcNjzHoqUD0/phM1 MBsleR7UTP73a4e1DhLDX6CLvn2g4JG6IQLzw9S4ftsJjL+uKwQ3h3MYmpWR6Ci3LPmbrp2E67I oLTuQbl9P0Wyjdv0uxdbvOuWmlWjNs/pnTIwacWoAt2w== X-Google-Smtp-Source: AGHT+IFNa6XyUhMS23y34/bAKm9sHSNnl8t92qxmlmrT+Dpt1WXzNiqS4jjwapK0tdnm1MiDS8k6zGPzMQvlZfjG9TA= X-Received: by 2002:a05:690c:3804:b0:70e:2d30:43eb with SMTP id 00721157ae682-717b17a5c81mr20228667b3.12.1752038796869; Tue, 08 Jul 2025 22:26:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniil Davydov <3danissimo@gmail.com> Date: Wed, 9 Jul 2025 12:26:24 +0700 X-Gm-Features: Ac12FXy-o2FImf8o42czA3rz0eWyOcBEaHhsKQI3DD8a1Z9FZSAnnSoMGa5cu_c Message-ID: Subject: Re: POC: Parallel processing of indexes in autovacuum To: Matheus Alcantara Cc: Masahiko Sawada , Sami Imseih , 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, On Tue, Jul 8, 2025 at 10:20=E2=80=AFPM Matheus Alcantara wrote: > > On Sun Jul 6, 2025 at 5:00 AM -03, Daniil Davydov wrote: > > I will keep the 'max_worker_processes' limit, so autovacuum will not > > waste time initializing a parallel context if there is no chance that > > the request will succeed. > > But it's worth remembering that actually the > > 'autovacuum_max_parallel_workers' parameter will always be implicitly > > capped by 'max_parallel_workers'. > > > > What do you think about it? > > > > It make sense to me. The main benefit that I see on capping > autovacuum_max_parallel_workers parameter is that users will see > "invalid value for parameter "autovacuum_max_parallel_workers"" error on > logs instead of need to search for "planned vs. launched", which can be > trick if log_min_messages is not set to at least the info level (the > default warning level will not show this log message). > I think I can refer to (for example) 'max_parallel_workers_per_gather' parameter, which allows setting values higher than 'max_parallel_workers' without throwing an error or warning. 'autovacuum_max_parallel_workers' will behave the same way. > If we decide to not cap this on code I think that at least would be good = to mention this > on documentation. Sure, it is worth noticing in documentation. -- Best regards, Daniil Davydov