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 1tNbvE-000yar-Qk for pgsql-general@arkaria.postgresql.org; Tue, 17 Dec 2024 18:03:53 +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 1tNbvD-004QpT-KL for pgsql-general@arkaria.postgresql.org; Tue, 17 Dec 2024 18:03:51 +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 1tNbvD-004Qlh-7y for pgsql-general@lists.postgresql.org; Tue, 17 Dec 2024 18:03:50 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tNbvA-0004Ru-CX for pgsql-general@lists.postgresql.org; Tue, 17 Dec 2024 18:03:49 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2166022c5caso44992465ad.2 for ; Tue, 17 Dec 2024 10:03:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734458627; x=1735063427; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=TgN+4jNsVsNJjxSmrPR2aMsX8ToD8PjoPxF6M4BNpdI=; b=cST/z7p5YJ/Q2ohIwbRICD489HQ03+R0Oui/yTOMqvcbAd9BTMDGK8GOU4WO2rfoIy QIo1/3ofvK0EMp5DY1cXO2/D1YR46SxfoorSfTcqnfJX37la7bbwcgCWq7jroeGMFZOL icpf67I47mLNSv4AUBJxesI5uue5QoBa5Xr/vQUGOEwsH24F0HJGE9WUaGMLpvtMvjst em/NddaXTKmulcNlqxc61E+i07zZ1tvwdvo/MuqxfiPZ2DZJ+jGMNdYrHUm8G9PY8O2l YrPJsFfB3G9Vl5WFMtZe71Oc99ANnJF/8w+8k0NScmeAoY1/NV8klzC3a2HCQq3dSpFD z40g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734458627; x=1735063427; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TgN+4jNsVsNJjxSmrPR2aMsX8ToD8PjoPxF6M4BNpdI=; b=Qq0YFbtNaFz1pzoC5yUkc86PLzk5eaTKSIwhfj8BAeI/q7/bcw+wupQ1b1Grfgc/Ru t1moB5f3MepZj1CqgF5jp4KPfcHTJNc6vcxxjRJh5/KRPxBDdx0vAicYiz/LoW4fNDGF mff48XuPd2MrTOCXgtEtaOVPhN9+QetpF0MKmDsjzzvvYqJpVfuO29Gqe4scbi16qGH2 /jZneBKawvh0Mbt3YZ/vbXyylTC9NE2XRNsgu9DBatmd5CqMtAIPubf/LxdgNee0y5gh HiohE/bSB8ICXCx+53P2YyqGJFFaIMrBYolAQMGGlDBJOcelDHAItH9smheSpYvt8VwN Rh1Q== X-Gm-Message-State: AOJu0YxV0ibjKZCjZARaZsNE/dw/TZ3ZH+cs08YClbwvDhMH8+YAIFbW pbyeaJ/tG0KBxTCZkJGmTjArnObNAMu1omorVH1x2T45Es+VNykJ X-Gm-Gg: ASbGncuTCS3PxRSNDVHBWkDIiV1okhtYpl2E0cPF+a8rZ5Ni4GSix4XIjozcGvWxPlq ABBpQZfc4t3+8tXBj6dITkRxEdG0L5yv5bqsrVskRit6gwQNSjXf/fB3kFsi9LUV3Uemw8n0Ouk Y/z3W4TIt4OJiLNPtt/Kvzn9zhbgZurX8udwY7UQo7xqjEGY+QqVm+0dM07Q1R33x7ytOnkSueN Lrdb49UfVnnAJ/iOTP11r1u0PIg4Wr1WfSsnofIqNVy2zq3wGrODuqXUdBk1qDu8hxmjvaunBLw TDwKXW0= X-Google-Smtp-Source: AGHT+IG/U4eZzd6JsigKAju9E/sMzDBBdPpeGKK+ks81CeAOTuFX2WaTfFnIN47EF0fOjMslnPRnoQ== X-Received: by 2002:a17:902:d50e:b0:216:386e:dbc with SMTP id d9443c01a7336-218929bdb28mr218401625ad.13.1734458627162; Tue, 17 Dec 2024 10:03:47 -0800 (PST) Received: from dev.null (d23-16-179-220.bchsia.telus.net. [23.16.179.220]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-218a1e63f41sm62275065ad.227.2024.12.17.10.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2024 10:03:46 -0800 (PST) Sender: Will Storey Date: Tue, 17 Dec 2024 10:03:44 -0800 From: Will Storey To: Laurenz Albe Cc: pgsql-general@lists.postgresql.org Subject: Re: Disabling vacuum truncate for autovacuum Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue 2024-12-17 08:30:19 +0100, Laurenz Albe wrote: > > Would I need to disable the settings on catalog tables too? (To rule out > > any possibility of it happening). Are there any other things I might be > > missing? > > Potentially yes. But unless you are using temporary tables or create, > alter and drop lots of objects, that shouldn't be necessary. I see. That makes sense. I do have some things that use temporary tables as well as some jobs that create/drop objects. They are not very frequent nor are there a huge number objects involved, but I suppose it could still be an issue. I'm not keen on altering the catalogs, but it sounds like if I want to be very safe then I would need to. > > I am also wondering if having an autovacuum setting to control it would be > > a good idea for a feature. > > I'm all for that. I previously had old_snapshot_threshold enabled, which would have done this anyway I believe, including for the catalog tables. That was convenient! > Yours, > Laurenz Albe Thank you Laurenz! I've read a bunch of your writing and I've learned a lot from you. I'm a big fan :-). Thank you for what you do!