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 1uAzMR-004wr0-3o for pgsql-hackers@arkaria.postgresql.org; Fri, 02 May 2025 23:00:03 +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 1uAzMO-00CBim-5m for pgsql-hackers@arkaria.postgresql.org; Fri, 02 May 2025 23:00:01 +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.94.2) (envelope-from ) id 1uAzMN-00CBid-SK for pgsql-hackers@lists.postgresql.org; Fri, 02 May 2025 23:00:00 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uAzMN-000mBy-02 for pgsql-hackers@lists.postgresql.org; Fri, 02 May 2025 23:00:00 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-3105ef2a06cso22284261fa.2 for ; Fri, 02 May 2025 15:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746226797; x=1746831597; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uGGdwwtUBULieZCOh+jiUe7TA4Vaz8Y4Ex7fcHtwjT4=; b=lZ5hbvCQ1MXOnYc3SjQd9rtMdtVek6fdC05XNulwAO8S7FiZdg5hBmSJWZx7BlJA3h 4tQ5+1ee8cD3kdsw3t1MLXXlmM5OFwwMgNcLxcM3V0Qtz0MixX8Oel4Q1YWwuHFVQ+bj J+pJGmXWQZ730pm81C0SKFzcZqR7bMr0FuDirZw9MZeevVDAyCRYXH3v/X8imqSXWILr qbBzhQDljxE3Bm2QGUrjENOvFMUd4ilgBbnA7qloFOmjKvqmrptljuoctFqwtiKvQb+J XV1Fmq+5niavWdCQGeEVCMRStjumFAk9WVCymWFjaGnkTcoWCU5O6nQb+T1PJvy//L51 88iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746226797; x=1746831597; h=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=uGGdwwtUBULieZCOh+jiUe7TA4Vaz8Y4Ex7fcHtwjT4=; b=D23rak+o2SAOhzN6WQja+84L9usUO7D6qKdH0b7LWtHwtYhHPT7USnvfsQ0Es6hAfY yiHKZ4dT1DB06vE5Z4fRBTW6sMcvrxfNPEjwKpC5dIDZ9eK6OvHxNU/cM6+5eXnLlGy/ gX/PxYbPXQjhrrgVP5GFkiUCvqMvBxga9ay+fVHSav3zT770jyEsYUsTcY9jeUwnmq+9 itXuIgSFmATqqqNOJnevLomd1EaEYMuU8AaJ9Yq7ZYDf4Pm2xI9ors6+xNME4amfW4mt 62Zj0co7o2UFHPUBclbR9j8ZfkP68lmZ6l6rGIRvvR69ivcTvjk44s1zjRhs/a+keZhW oDrw== X-Forwarded-Encrypted: i=1; AJvYcCVzT6LtlZm9HIz6kR9QEmGUi34HcmbasJqlKjvHCTP5bzxyDL7ZTj0To7+WTwk6cGFmaEgES3OUuc8OB8UO@lists.postgresql.org X-Gm-Message-State: AOJu0YxioW72JH5fiH9JKiPMPgVU9t4kAOgSD1uQ4mGioeyorj22VxNX NVwRpRGqzBQsjkySXi0tdRgAGXgwRxm1ZC497hNK4lvoIANavaXfEB/tHTJu+N/RUsCpFdDNXkz CDSQ9H9dS5aLeX50JyYh2cnahwYI= X-Gm-Gg: ASbGnct6R+sjiuKSp8lk6iXDHriOAMUqxVuO8k4eatORsm0vaD42m2+9B78pRBlwSzu WBPwCMt5QkQ/JpX+ApKyuI86TolZfNkWf16nKi8Awh28ubzm3fEF3A3s81kglbD5u6RUAygnuzf z8ChhZZF0D2ChRZeqW1Wdt X-Google-Smtp-Source: AGHT+IHrHjOK9V9O+VCoWGQfffWDk6HiM9ONOC6vto7zE09eh0thK4KE0TEuaS++lQrIs3ITjebrXz4rx2iJ7xiKCjM= X-Received: by 2002:a2e:be29:0:b0:30b:d4a9:947c with SMTP id 38308e7fff4ca-321db78d465mr2268561fa.24.1746226797240; Fri, 02 May 2025 15:59:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Fri, 2 May 2025 17:59:46 -0500 X-Gm-Features: ATxdqUGvGOm13mH08IpMbdbRdXA6roa1NT6DNGlmNhKKZKFiTGG1INv2gAmUEJE Message-ID: Subject: Re: POC: Parallel processing of indexes in autovacuum To: Masahiko Sawada Cc: Daniil Davydov <3danissimo@gmail.com>, Maxim Orlov , Postgres hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > I think it would more make > sense to maintain the existing autovacuum_max_workers parameter while > introducing a new parameter that would either control the maximum > number of parallel vacuum workers per autovacuum worker or set a > system-wide cap on the total number of parallel vacuum workers. +1, and would it make sense for parallel workers to come from max_parallel_maintenance_workers? This is capped by max_parallel_workers and max_worker_processes, so increasing the defaults for all 3 will be needed as well. -- Sami