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 1tuvX4-00EJ8W-PX for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 15:40:38 +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 1tuvX2-006q6c-7q for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 15:40:36 +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 ) id 1tuvX1-006q1J-Tk for pgsql-hackers@lists.postgresql.org; Wed, 19 Mar 2025 15:40:35 +0000 Received: from mail-yb1-xb36.google.com ([2607:f8b0:4864:20::b36]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tuvX0-003iqp-0E for pgsql-hackers@postgresql.org; Wed, 19 Mar 2025 15:40:35 +0000 Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-e643f0933afso762046276.1 for ; Wed, 19 Mar 2025 08:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742398833; x=1743003633; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fdk4gtO+C7Ozv8XoOhynpt//JTCpwFKsHjIprQjDrK4=; b=HLpCI70ERooLQ+ytRtQ4crnGkXwlgvM0PmertpQCUcJbqt7M8uP/3pfsO0v2np1Ur/ RNEAhxMmf0uvoDGatyVHGvSLZosV4RoOKq3a2FLmO3T4wAG88vnXx97bvqEcE7iiGBR7 vx+x/QYsoTlKyrHrlVWM4eeP1XsVaBY3P+maMeCIFJpWjCRs4BI+K0M9e0D2gzpbvRUC uHapiltlDijsEHQ+Kir0e/PluLhB4Z5Ecd2WO4RBFQ1BOGSZnnAK4rqzTJAu6K6vUZyg ygVZlGkJGZWGv29A7jpmckFsjLdr+XCL5GCGr31BkCfdElz9ufjwd/3Z6BUv1R4OSsCQ S61w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742398833; x=1743003633; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fdk4gtO+C7Ozv8XoOhynpt//JTCpwFKsHjIprQjDrK4=; b=JEybXLd0kMsTPQyINOkMShz+/W5xUC4h5oiSTSYcCpOyIEKo9rryZQu7cY4ylwzW4y qFZcFidQFm3ypdu8NgGsxQIEUkuleAxIBIpfcBCXS6CJtk/hvXdCm/9RGDo+rHzhsbPj 3rSSI+kbrz1MZYZ3khZthe9XaUIZo9tXbHAczHJf6DGpbw3Ry+pKR0v0HxRQdTVJMnx5 7sq3/nWE0wUkCtNs7TkjvPwaRND4/JhIDp0h54MerC3laR1rGeJ+4HmOTlLxqnhu2G6D qex3XwXebxzIzxxZQP9q5oBq9uhsr7ibs8v0I3AfzmIw6TbD5BAxDBTeq2HnDJppkpYT MWTw== X-Forwarded-Encrypted: i=1; AJvYcCXZO73YbleenanMc61j/6vlXAD8H5ja4opbAm+7u06ISw80NiXGNntcY3lUnsAZwuqPmDKNgrjWomDTj7To@postgresql.org X-Gm-Message-State: AOJu0Yxk0PjrnQf86r47sFGXxZaMTxWkdEOIXPbOGzx1uCTxn1jKl0vL anZMJW0n4yi/NDREojE7/iS/G4O+p9pYbEWzZOi1ffpYfBzLdL7t X-Gm-Gg: ASbGncuTzZihVBX7ukAuwbqQLHfkXMXzD6N4WpxYwqoEOmNqhro0oPxBI4NRMPkFgzp 3eoOPeV0KYmwrOmhIY6Ja12MtKLLgiIwfzpzsyVFkcjLCPp1oLDe8byqFflEHgN96HWXAu03us4 NquXte+UfAHiR65gqxuSM1B8xLsA+6zns2V805N4btlwBYMJWbYsndPHmXo6wTeae8A8witPWq7 1hnvhn2ks71qRE+0MeAEfdcRLYKbBLMcWqxvIqUrHuza3dtovQfge4IwLithcaGGFCjg/IQCghV 8lEqBaSLzTBI/jgkYYuu8jdTrywDI3IhFOYuXB/Jx+6fotp3uQ1ZL0VWe+4U1DWjIlun6A3rSii KxhU8py8blVyEH6xkJTl2K4tIXKL91p5whik= X-Google-Smtp-Source: AGHT+IEkmY57/lUVyEy0m2c97ENSvl7Owwyr4r3n4mdxet2ELb0CgIcD/sofrZkki9bLTj8BnDWXzA== X-Received: by 2002:a05:6902:1616:b0:e61:215f:46b9 with SMTP id 3f1490d57ef6-e65119243eamr11612876276.14.1742398833555; Wed, 19 Mar 2025 08:40:33 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e63e53faaa7sm3115495276.8.2025.03.19.08.40.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Mar 2025 08:40:33 -0700 (PDT) Date: Wed, 19 Mar 2025 10:40:31 -0500 From: Nathan Bossart To: Fujii Masao Cc: Robert Treat , Laurenz Albe , Gurjeet Singh , Andres Freund , Will Storey , Robert Haas , Postgres Hackers Subject: Re: Disabling vacuum truncate for autovacuum Message-ID: References: <28773a66-fb88-41cf-a7ec-4216e6c91c94@oss.nttdata.com> <6f2f2167f4be09e6ca9251c8f69dfe01809d68be.camel@cybertec.at> <88e3b55a-8ef8-4b53-8d71-6bfde1a07bc1@oss.nttdata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <88e3b55a-8ef8-4b53-8d71-6bfde1a07bc1@oss.nttdata.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Mar 20, 2025 at 12:34:59AM +0900, Fujii Masao wrote: > +# - 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? Ah, you're right, I need to fix the category. Will post an updated patch soon. -- nathan