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 1twTig-00EvAa-L4 for pgsql-committers@arkaria.postgresql.org; Sun, 23 Mar 2025 22:23:02 +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 1twTif-006gQG-A3 for pgsql-committers@arkaria.postgresql.org; Sun, 23 Mar 2025 22:23:01 +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 1twTif-006gLS-0Y for pgsql-committers@lists.postgresql.org; Sun, 23 Mar 2025 22:23:01 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1twTic-000kLK-1x for pgsql-committers@lists.postgresql.org; Sun, 23 Mar 2025 22:23:00 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-54954fa61c8so3984627e87.1 for ; Sun, 23 Mar 2025 15:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742768576; x=1743373376; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3tfkvE1tL7sS+aGpnAQok7P1VAJUWxzCJ4CmJAkyfzA=; b=gJCHC5AoOhY5nmJ2q39k0+Mo8pyb+KxOVMnm18LLJ2mN3LSmOG4rafZFlcIRwoi8+Q 7UBYV/Jqy1R3wV7MF3HXDbTIV9tnL0GUulm9MxUU7QqRviTRHgpyaoaXYIat89YeQVba aRMfa5hfCOq0rKKStjcCZb8RLWhxDiv7qSZ4DSCCSHjRMXqf8Z5M+6l9Q12cJ4vNVObp AdT62PF0rvh1mL3Y0fCg08fZpaaYZXXo1Sa0lvkjLdHyscKvsuHuchZY1hikAkTRU+FY TqXKigzHkuwYyKKZHjwoc9UhJmXZ1UE6epE+kXG61kGyL8M2IA7ZxGzPy38OXPN7fX++ OlOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742768576; x=1743373376; h=content-transfer-encoding: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=3tfkvE1tL7sS+aGpnAQok7P1VAJUWxzCJ4CmJAkyfzA=; b=tBTfhzfpTGCdnb1nN1H+8flHTBE6l3/Gq2wPjCPtHJf7a1Bkoqyym1E4AcU1WgQpx1 lbxz0ZyyRSkNet9lHAsKlNCdEp05nljrew9am5P5rYIeI4a2HwmTwE76ecrigRFqc/XR s8VZxoJ33xB8NOt6o4r2e3F7KyKIYxXRhw5Zvrf9wxiyHRkq8PQ4XgV8PG920yzoNua0 SHRq51GB0irp8FNZ12McKsfaWaepkzyTmSvrOwx1qvVQQJ6G57lP8d5hagpUnGbZQ38x m9msYu0x6R9wkpjDC2au+7oYPh3c71df0g7d61idsI1UQBJU7LUE6R0IVEbQbTWWVxgh KuVA== X-Forwarded-Encrypted: i=1; AJvYcCXRLyLUbJmIvkl+YwxQ3W0GQBH+KeKpDzgSoUWuOR6TGTJ5X1lY8FAjCHGtgA3o29h0AjPPbefmFJb7VwRW0XEZ@lists.postgresql.org X-Gm-Message-State: AOJu0YyOUKeA+0iVyblW60nSNBb1N+Q8RfOnpIP23NprDoF4xT8PDbEj Uik7V87wRezOa6t0nyXHCSUJp3NQNDeT6y5fl+zzQpusTCvb7PiqkcQBeC3CQKxhExf0acQq+Ew JBqsoV98C2IElFjpr3yIQIBZckoI= X-Gm-Gg: ASbGnctIs94xWqgm6e81U0JT7MViHOyrlku0rlDZsAAty+Qtth4lijRpMfcyTxaDTzB +rOeIf5JalHz6iGFnMho8z1WLyRl9ZibxodowY6T3p3qnkLT2iqhwkJnCppyY5qrcdutG2GbT+U 2fewdOJql4o9zGn74udtalv8scFiZWdRGs/kLBhYg9sQ/oHLyQZL2T5sFMKL4= X-Google-Smtp-Source: AGHT+IE96bE/sZUbf3gVRKW2KMIfb/APxMtA9iU8RLNJhg4fy/w6bC+yORxRMoeLjTwiuh4lJQxcQ9OsIg8Dis8uvFI= X-Received: by 2002:a05:6512:3ba5:b0:549:7c64:3bc0 with SMTP id 2adb3069b0e04-54ad6490baemr2990533e87.29.1742768575402; Sun, 23 Mar 2025 15:22:55 -0700 (PDT) MIME-Version: 1.0 References: <993142.1742484654@sss.pgh.pa.us> In-Reply-To: From: David Rowley Date: Mon, 24 Mar 2025 11:22:43 +1300 X-Gm-Features: AQ5f1JrxgvasX9EYenaWzn_2zeFVmMvPQshY1quFFZH4zZecXC2zekZ3S3qtj5Q Message-ID: Subject: Re: pgsql: Add vacuum_truncate configuration parameter. To: "David G. Johnston" Cc: Tom Lane , Nathan Bossart , pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 22 Mar 2025 at 05:40, David G. Johnston wrote: > Not seeing much point in trying to get rid of the on/off switch. It just= won't make sense to choose a tunable value of zero to disable something, a= nd probably should be prohibited. Can you explain what does not make sense about it? We have plenty of GUCs and reloptions where -1 means "inherit the setting from somewhere else". Do those also not make sense, or is this one somehow different? > I'm seeing an implementation detail discussion here, not a behavior one. = The field complaint that we don't let the DBA control this at the GUC leve= l is valid and reasonably solved. The "default" behavior hasn't changed bu= t now instead of hard-coding the default we moved it to a GUC. The storage= parameter is no longer documented as having a default, which is correct. = It now behaves like most of the other storage parameters in that if unset a= GUC provides the value. The reason I was pointing this out is that I wanted to ensure that this was considered before we release code with the new GUC. It's true removing a GUC isn't as hard as removing a reloption and we already have the reloption. If everyone thinks we'll likely not need user-tunable options to specify the number of pages required before truncation occurs then that's fine. The problem I see is that we already have lots of GUCs and it'd be nice not to have semi-redundant ones in the future because we've failed to consider something. I was just pointing out the "something" part that we might want to consider. David