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 1tuvyz-00EXVL-LY for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 16:09:29 +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 1tuvyy-007G9O-9u for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 16:09:28 +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 1tuvyx-007G9G-TM for pgsql-hackers@lists.postgresql.org; Wed, 19 Mar 2025 16:09:27 +0000 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tuvyu-003mxT-0j for pgsql-hackers@postgresql.org; Wed, 19 Mar 2025 16:09:27 +0000 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-6fead015247so53450497b3.2 for ; Wed, 19 Mar 2025 09:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742400564; x=1743005364; 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=Gq8wNcxQ1wjs2QJzPH6HKP8fEvnxIzOD9j5M4ib8pGo=; b=c4FoL6KNDMYN7j7TZciYJKCyAAm/qVNZIE6lS8ZJ8S7oLPj9YOlcecPiEktBbV25uV RpHP4I2taBIkb81GhwGt/1bqdsysmVUQ68KPuEcDv1gYLofykZbnhftvsW0hkYfwwqrY XwiIfUnpET/xpZLD8sRb33KQ/+DHJg6CQoySG5Km3byR3YisI1/hWS1nv0a8PGFmA8+E KETnligYIy9W959Hq8driw3VqiW6uZJxXyooNmp5ykq8IP0mDhdwFkeXAqz9DWjR+pAl 0+k0e7gEaUDQM8INWwDX/MaDx3fFEXfy9TiKE0o+SWb3J+OdGvsS/9axpBDTyeXdndw1 rq+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742400564; x=1743005364; 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=Gq8wNcxQ1wjs2QJzPH6HKP8fEvnxIzOD9j5M4ib8pGo=; b=cavjd6WaI/62Dh5CE/LrnGCrsGx2/0lZW92LBxauvNB3RQ9iaynyFxNTFI8cC/HP2K vv/iwZ6dzXWdDWTRiGBlBXUGCbV9ySlugo527+enfXyFOC/jum2S6bHUlUkSqnYjYmkW ejLRDfSS9DJrLBtLg9rDoN8a/L6ux1ZrxucrDyu5lS8pK4LMb0TemDckuOZVgk0AM3Qt VOq5axnplzzKr7YLkSluj95ZyFRzykls3nJDAygpojye1qHk9Vp90/4S9WEcc0BaGuGi 9gfXQdeDUuha8wXo7l2c05S4wKGEPFfT0DFJApOqfh/TZS46SfHBmjLUrcMUnLrX1GT6 aO0g== X-Forwarded-Encrypted: i=1; AJvYcCVp+WBeP9CTRMwADtvP86ErV0Uu0o6wa2VLizWCy862z+D//ad+ik396gwhwxayQdbFsojtOBqKGHBKNzXw@postgresql.org X-Gm-Message-State: AOJu0Yzg5jQgkuRFX3SfsgEkdxiQX90QcNaQmBzBVMuAS9uaNQTNf/pi OTm5ZHk/rZuurKIK3n9zZMq80Kx9kzc/tGfnzi/kXm3xrbddcLK4 X-Gm-Gg: ASbGnctkeYgg9VKqbXQw4fcdp4bJ8/4nfQy8rpDw37wEsTtfnGM8o8TcS2MiLKbuulL nhx7ytFFlvzYxt+fvI4GGJguYJn46v15c+MONedGSixYnyXq/MKmnrgo7doIy6TVlCnWvAaCOrm LDOyiV5NkuIlxeEUUXLcQrqKGA9RFdBEaDPxSRxXtz+p4O0Suy3w/hFU72HiKoI2D4bs/sUC+zH oZwkuAQttwIe1/bXOmdtJQd+cy9f+0A1mQyuyxS369Lp5BTAXIdbpQInwv9esJlNQXoqEOUqya1 F5wvJEUYaZIL71W1Uq+rrsu6hIOpoOFyrXIHLSHLG7sJdobpJfmbCuBlUGDddr6CGV/hfQtU4o7 O+NrFzQG678OoOgY5Kl9TXqqEsiOanVqq9OU= X-Google-Smtp-Source: AGHT+IHuOhAcEsN4ZN+mcRbhuc4w+uKugYycO2170+G+akzgYW4SBdBB7thcQwvUknBcU/Ozg9Ofqg== X-Received: by 2002:a05:690c:7442:b0:6f7:5868:86ea with SMTP id 00721157ae682-7009bf4ac5bmr45448907b3.8.1742400563835; Wed, 19 Mar 2025 09:09:23 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6ff32c7c2e3sm31006577b3.78.2025.03.19.09.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Mar 2025 09:09:23 -0700 (PDT) Date: Wed, 19 Mar 2025 11:09:21 -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: multipart/mixed; boundary="QCdigXRwPRi3PRaS" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --QCdigXRwPRi3PRaS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Mar 19, 2025 at 10:40:31AM -0500, Nathan Bossart wrote: > 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. Here's a new version of the patch with the GUC placed in a new "Default Behavior" category for vacuum-related parameters. -- nathan --QCdigXRwPRi3PRaS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="v6-0001-Add-vacuum_truncate-configuration-parameter.patch"