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 1tuvRm-00EGRg-HH for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 15:35:10 +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 1tuvRk-006izb-Ur for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 15:35:08 +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 1tuvRk-006izS-KA for pgsql-hackers@lists.postgresql.org; Wed, 19 Mar 2025 15:35:08 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tuvRg-003mg8-10 for pgsql-hackers@postgresql.org; Wed, 19 Mar 2025 15:35:08 +0000 Received: from [192.168.11.5] (p1695135-ipoe.ipoe.ocn.ne.jp [118.0.92.134]) by oss.nttdata.com (Postfix) with ESMTPSA id 44CBB60F08; Thu, 20 Mar 2025 00:35:00 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <88e3b55a-8ef8-4b53-8d71-6bfde1a07bc1@oss.nttdata.com> Date: Thu, 20 Mar 2025 00:34:59 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Disabling vacuum truncate for autovacuum To: Nathan Bossart , Robert Treat Cc: Laurenz Albe , Gurjeet Singh , Andres Freund , Will Storey , Robert Haas , Postgres Hackers References: <28773a66-fb88-41cf-a7ec-4216e6c91c94@oss.nttdata.com> <6f2f2167f4be09e6ca9251c8f69dfe01809d68be.camel@cybertec.at> Content-Language: en-US From: Fujii Masao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/03/19 10:42, Nathan Bossart wrote: > On Mon, Mar 17, 2025 at 10:14:51AM -0500, Nathan Bossart wrote: >> Thank you all for the discussion. I've attempted to address the >> outstanding feedback into the new version of the patch. > > Here is a new version of the patch with tests and some other light edits. > I feel like this is committable, but I'll wait for a couple more days for > any other feedback or objections. +# - Default Behavior - + +#vacuum_truncate = on # enable truncation after vacuum Since there's no existing GUC category that fits to vacuum_truncate, I'm fine with adding a new category like "Vacuuming" and placing vacuum_truncate there. However, if we do this, ISTM that the new category should also be added to guc_tables.h, and vacuum_truncate should be assigned to it in guc_tables.c. Additionally, the documentation should be updated to include the new category, with vacuum_truncate placed under it. Thought? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION