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 1tLcni-00FxQt-NM for pgsql-admin@arkaria.postgresql.org; Thu, 12 Dec 2024 06:35:54 +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 1tLcng-007z69-8g for pgsql-admin@arkaria.postgresql.org; Thu, 12 Dec 2024 06:35:53 +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 1tLcnf-007z60-N0 for pgsql-admin@lists.postgresql.org; Thu, 12 Dec 2024 06:35:52 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tLcne-002OjN-Cf for pgsql-admin@lists.postgresql.org; Thu, 12 Dec 2024 06:35:51 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4361f664af5so2454535e9.1 for ; Wed, 11 Dec 2024 22:35:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1733985349; x=1734590149; darn=lists.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=gjQSoqoz09P76lSb7Gsa2S9SeH731+9yEs7tpgiPw94=; b=MKBb3AKnT+HwL8/hDyjAo/6Y05MhBAFi6kBn65LpHiDi2KZaVtCdZAdhrG7/Iqhw3a EID0CSS8pAlDoo5ezjP5cuLEE2xIVVT8o7z5yeAvTy2rS2EvtmU8ElVgSKapsDAt//oz udeztbBd1zkwVGujP/aXOf6H6+3FLfBrkrsghgFDg5fGm8TbRS41lhpDEsArWntdiHCG GaTIBPIEU+EtE5HrfBI62w9IeM2WNZjowONSXlROdXxoqAzyzn4/0fDLRLCdWpQzocZD ivP/caPYdOuWKIG6d2jKeKrTK1MOUU3iCwdJO3gKkJ49vZijxUkXkS06ciLi/eSKzOl7 Hqtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733985349; x=1734590149; 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=gjQSoqoz09P76lSb7Gsa2S9SeH731+9yEs7tpgiPw94=; b=Af2Bx3/RQcEi9oWMlWX7s0K5JMTdYAFwCkapOHCIBiJJToPdWw0HYbcfcHPK3MERSy CmnzYZlOMdv8e6O+6XtHR6PdPzq8/RzbpwXzs061S8GZpl4O/6TTUHrkmtqxgK/SJ+C/ 1cubTuzMG7y5k61QX56nzclfgw6CL3Gh/ScIkCnEX7hY7Sz0huTuN3V48PJ4mwBINnQJ CtkArHsegqoK+gZBQ4IXGXFajLIasNxUQTOQDrrctft/s9udy3ZOvIwkx+iydESMQnaz A/uyUYXh8nc9cwsDUh0Yv4BLV96b6KVcbeCly4LamwpUQ2yldCrzoF2POwH4xtHsHlXG zF8A== X-Gm-Message-State: AOJu0YyCqINHUJ/hR3ggSgwu83vJCpcEx5v6mMEV83v9diB4sdLhdsyB 4GjgoCSQ8DseTUh2U61alvJiQ2j38gb31DsLnn8bKFUbtR/BwJt/mMLUrWmCIZ4= X-Gm-Gg: ASbGncsu43QEfEYNGNyIutSTH6K1O0LtRMFSJy5FqSVRbo/VOz+OP8jmX8TWvq1HMz7 LH4b5ey6OPCsYS0b7mmulJpgrdRWGmkZNcDw/ItM0Gtr5h5rXhwzrPuuBUl8oYXbuScN9+ifRB9 1d9U9Ee1jFoPtOhV0K0pjrhsazVTIBeCsArBbD9EPQSuZAZaWjM5pnQ9kPvSKVIB6WgbxI83j9f izUQZpfNiJmyZWN2EM8uWwDE91Lj5JSBe+vraAp/bSbBm5V8OkhFofG/LdMwU3zvoRprbdzWqs= X-Google-Smtp-Source: AGHT+IFhT75s8P7VoNoCcRrKgfep2XEdjui9kyzhLYk5GUh1agkubI36IdCZVF/IFYt6NMd846xt4Q== X-Received: by 2002:a7b:cd9a:0:b0:434:a815:2b5d with SMTP id 5b1f17b1804b1-4362286c273mr16319725e9.24.1733985348632; Wed, 11 Dec 2024 22:35:48 -0800 (PST) Received: from localhost.localdomain ([2001:871:260:168:2a46:3a5f:edaa:a7f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43625706cd3sm6583675e9.28.2024.12.11.22.35.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2024 22:35:48 -0800 (PST) Message-ID: <52122541702b838b870bbd239008625aacc042dd.camel@cybertec.at> Subject: Re: VacuumDB generating huge WAL filed From: Laurenz Albe To: "David G. Johnston" , SASIKUMAR Devaraj Cc: Pgsql-admin Date: Thu, 12 Dec 2024 07:35:47 +0100 In-Reply-To: References: <155477463.1496353.1733983706261.ref@mail.yahoo.com> <155477463.1496353.1733983706261@mail.yahoo.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.2 (3.54.2-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2024-12-11 at 23:25 -0700, David G. Johnston wrote: > On Wednesday, December 11, 2024, SASIKUMAR Devaraj wrote: > > When we are running vacuumdb for our database of 1.5TB it is generating= approximately 60GB > > of WAL files? Any way we can reduce this WAL file generation? >=20 > Set a much more aggressive autovacuum so you don=E2=80=99t accumulate as = much dead tuples between runs? You can also activate "wal_compression" for smaller full-page images and increase "max_wal_size" to get fewer of them. But 60GB of WAL shouldn't be a problem. Why are they a problem for you? Yours, Laurenz Albe