Received: from [217.196.149.56] (helo=malur.postgresql.org) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKnRO-0007t7-89 for pgsql-admin@arkaria.postgresql.org; Wed, 25 Jan 2023 21:36:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pKnRD-0007Q6-4E for pgsql-admin@arkaria.postgresql.org; Wed, 25 Jan 2023 21:36:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKnRC-0007Px-QD for pgsql-admin@lists.postgresql.org; Wed, 25 Jan 2023 21:36:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKnR9-0008Ef-Po for pgsql-admin@lists.postgresql.org; Wed, 25 Jan 2023 21:36:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 30PLa3S12845695; Wed, 25 Jan 2023 16:36:03 -0500 From: Tom Lane To: Jerry Sievers cc: pgsql-admin@lists.postgresql.org Subject: Re: Does raising maintenance_work_mem get seen by an already running aucovac? In-reply-to: References: Comments: In-reply-to Jerry Sievers message dated "Wed, 25 Jan 2023 11:50:42 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2845693.1674682563.1@sss.pgh.pa.us> Date: Wed, 25 Jan 2023 16:36:03 -0500 Message-ID: <2845694.1674682563@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jerry Sievers writes: > There's a long running anti-wrap autovac that we'd rather let finish but > on the server instance, I found maintenance_work_mem rather low and thus > raised it in postgresql.comf, reloaded and confirmed that my interactive > session saw the change. > Can a running autovac make use of this or should I either wait it out or > cancel and let it restart when ready? Looks like an autovac worker will notice postgresql.conf changes once per table: /* * Perform operations on collected tables. */ foreach(cell, table_oids) { ... /* * Check for config changes before processing each collected table. */ if (ConfigReloadPending) ProcessConfigFile(PGC_SIGHUP); If it is stuck on a particularly enormous table, you might be best off to kill it, but otherwise I'd let it go. regards, tom lane