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 1tntil-003NCV-AH for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Feb 2025 06:19:40 +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 1tntim-00FRZt-8b for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Feb 2025 06:19:38 +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 1tntil-00FRSK-Tc for pgsql-hackers@lists.postgresql.org; Fri, 28 Feb 2025 06:19:38 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tntig-0007W0-1X for pgsql-hackers@postgresql.org; Fri, 28 Feb 2025 06:19:37 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-390dd362848so1343655f8f.3 for ; Thu, 27 Feb 2025 22:19:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1740723573; x=1741328373; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=u6KJqBmoGkoxdQSGPQn/dHp+MJ3SshKbZWvBqoWjhR4=; b=WtK96LQQblWO8/6AMecKnMu7T+izA0q/ZvSUR9+cxEoKxDF8DobRyrAyfQOczxsiOj sBG6qGJ6f3vHuhlD0wLlXpMcBX0G20erJizd0geyRsfM2YhyVEHImmhreJWH6r8mCiN4 G6Hd43WthahI4QM953vQHT2PER3FqBnEwuFFn+qifxeKbf1WmZXp+f6FUhvCnJ59wivj v6pAdkxxLtFg+s/IuNGdNWWudp9PmO7gtxwJESGUYQIHJodg9my7sYahEnVw4XLLyKWO SD7Z3JV5A+BudyZZiHdOlS0+cjqpZWysNVyiSM9vLOFBL6zat57ewGICO5lvJKYm53Ac iNAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740723573; x=1741328373; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=u6KJqBmoGkoxdQSGPQn/dHp+MJ3SshKbZWvBqoWjhR4=; b=KYcwNIaEiL7irx1V+y9wqdJ4xXBh8qn1n92faHs1d07SmQgc69sPB3alo93XKwQYMV gpX4UEbQU/S8fW8TBxBC33mfbQ2EK1xbqB/1sqG/40CG+4L/6ISVV47uiTjDBrZwEDBT 0rPxrFtlaqHOZnpwYSMlb6Gg7ycWBZUkXp0aE+kXdzXrj/8f8zOhkPKAFQXMCmt7bZb6 dMKA6SEt3FGQrwvBJGSxbUSzs7gC5lImNL+Jl6Mk3cYOHfvymP5YUPcCKzdUqOf0q69v luhY+ZlCnH4Y81RYrs5SyHLNtxmKSAWQUl7ERWRNxLyHFtFHmc837BfNSzipXTSewVmP SJSg== X-Forwarded-Encrypted: i=1; AJvYcCU5wijhnF2i9VsZNPTIHyaZX02Q9+WPWwhkIdTWh7j8L7hD0RKpmEhnhZdgHaK3Z+LNOdY2XjOCYXQbFBNL@postgresql.org X-Gm-Message-State: AOJu0Yyq0wWUSOwq1Ia/wD5XC6gvqKZa3Z8EX51lSzIO/Oa0TN8pLgIu l4cjiyLXSktmuaZ1VYCwwP5kqOVhPSJOucyHBhr9q2cqE5hPtdmZQvtojd+GEWW7SB+45VwrEKp A X-Gm-Gg: ASbGncs8El+d0fZL4mElCUeWyNhmU9F9UDz2wizp+0MlKGm0HjspZvrt63AhFIqtrTN hkGqm/xmzYRK8H/h5zSGh5MLefPU8dPpkMkpdgH4nLvuD1lmfPHdfQu5rFoebieW8u2dY7DTZHb 2Fb0TKvJJdedxSZ23CnYyw9BZZrfDDLCGYwwihyS1ZOqsRNux/pp2XA3StDZZyfOBNmAk6TqI/V txG8+9i7UECEEEcvjCivwCBpixnI/Dq6NoSU9dI23JJKOtdr2tra3VX3KRjvq8PqZa0ozJI3gFv v6T72mGw4N1yrxhL3v+FmbgTATnvFyV7aMgo8dEccqkqOUQ= X-Google-Smtp-Source: AGHT+IE09oQuzgG0W/cOmDdjPjXb8v+wH5uptEWVMhmLux0ceJLJviUqWR1rLET4FpMK9vrpgLOEvw== X-Received: by 2002:a5d:584f:0:b0:390:e3b1:b963 with SMTP id ffacd0b85a97d-390ec9bbc57mr1417939f8f.22.1740723573306; Thu, 27 Feb 2025 22:19:33 -0800 (PST) Received: from localhost.localdomain ([2001:871:255:52d3:3ac8:61ab:b634:342]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43b7a28c6fesm44064565e9.37.2025.02.27.22.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2025 22:19:33 -0800 (PST) Message-ID: <97160e4b549c726bd409c8059a1bfaf07e7a6d04.camel@cybertec.at> Subject: Re: Disabling vacuum truncate for autovacuum From: Laurenz Albe To: Nathan Bossart , Robert Haas Cc: Gurjeet Singh , Postgres Hackers , Will Storey Date: Fri, 28 Feb 2025 07:19:32 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-02-27 at 21:35 -0600, Nathan Bossart wrote: > I spent some time on this one today.=C2=A0 A couple of notes: >=20 > * Since the reloption is a Boolean, there isn't a good way to tell whethe= r > =C2=A0 it is actually set for the table or if it just inherited the defau= lt > =C2=A0 value.=C2=A0 This is important to know because we want the relopti= on to > =C2=A0 override the GUC. I agree with that, without being able to think of a better solution. > * I didn't see a good GUC category for vacuum_truncate.=C2=A0 I suppose w= e could > =C2=A0 create a new one, but for now I've just stashed it into the autova= cuum > =C2=A0 one.=C2=A0 Bikeshedding welcome. Why not use "Client Connection Defaults / Statement Behavior", just like fo= r "vacuum_freeze_min_age"? I don't think that "autovacuum" is appropriate, since it applies to manual VACUUM as well. Yours, Laurenz Albe