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.96) (envelope-from ) id 1vVtP0-009UEI-0D for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 15:25:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vVtOz-00DkVv-0F for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 15:25:21 +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.96) (envelope-from ) id 1vVtOy-00DkVn-2K for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 15:25:21 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vVtOx-001FXk-14 for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 15:25:21 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-64b560e425eso163081a12.1 for ; Wed, 17 Dec 2025 07:25:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1765985118; x=1766589918; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=+u8bs8ZEn3yFxsp4KYx/Sj4/hYINrZPb/dVPrjGrQvU=; b=IbUoOYeDZNsucPMDXRxHQKH80wy1NWn6HTISniYJqKFVTtKNwSbxTv522UdCf3Jfg5 MPKML4M8/r0OOtvCJ2wXVJ42j19X1kJfNnFF2IlDAf6OiXnzlw2EXGnJV6LiGmkJQBtC xNsnlcV3x7gma5kBBZnQlEHFRrK9iX+WxChM6vFWbMkvos4Khanl1MAExFeMWj8uIT9X WvqoKYomIH+TjdzN4yIFMSDAa0e67+AkQ3ZGsVNZsXjau3cOltjdZYcuOiK0YlksHzD4 sRN5T7ANYtbW1J6AmTk9fjDbkMTaFPjmtAd2a8smtnGdlYYVYYE6OaJSEYqZPjD3vJqE 5Tfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765985118; x=1766589918; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+u8bs8ZEn3yFxsp4KYx/Sj4/hYINrZPb/dVPrjGrQvU=; b=GsysI0FC/XBjCG7ncc6KP5RPi9VtIhQZNTNtkZemdzZu9WQiMzv3np0iu19SuLfagm oV0RGwFta+/up5Qu4qvRqq/uAyDK1u6dB9/z1nTXrNDnJakol0sGy6B8OMgWXsRfd4Rf ALA9+bfFiZeR8O029ihrr0AKONgTqExEG8hrWzIZSpHnrGHjvkTo6IdBECAUvIJuffMl 35xuT+Y1WXmTi+90qpqLduimrSF/+jr5Kcxw6g2yU57Y7p5PVdFzbTwL8J5qvmKyTc82 LIby9vJpnkn8JNbDNbHl5kSnbmVHNUoQuz6uL0bVnEqtoSw85XWquIrhHeYyuz/znduv YzjA== X-Forwarded-Encrypted: i=1; AJvYcCWDfoqjOneWW8BPOL7DDxP+3Kv2oFyvA4L3jX3HS0BbNfABTKW4eFKTiklOvXK0s+Bd/4AxJY0oCKZhbaZo@lists.postgresql.org X-Gm-Message-State: AOJu0YzNZEnoXJ5fL5HFvbXQH6/YQa25kjyzapa9zn1ESvOaH8eM8c7X 2zw/ANCqBMgqUG3Kx68iBZkBmfTcAdlrGbCM7c5LvMithifU3+TkVI8xlqz1Fpv+F24= X-Gm-Gg: AY/fxX5YsLHjbc9rFuZGVFTzW1n8RdHkhpUX1QaRCB5b2WW1568iYqSLO/WkH8G2PXX 7w6xyEBEXmlR1uTBVAMYCLM9/MbG49Gf/GASLu+2L66OfvOK14ogxv3N8AZDO51Qag2BAfq+xBd Q51xXfML/efu1Vcm5b2sTvbHJQuBF4alJaXFJz44pmRnrhRzTdY2RtYAj+kjLGphC3JO9G0UYKx o2I/hgFVbWFL73CuMboJqMZp4qdpbcKX5ViQEU06iF+2WRjhJidGr4WJF5XZmz6bzT5vwk4hMWg ZpP7+FzJhHKlTwyNP7KTdSgkOOIHhDbQ+T0k5jpubu73lpIbnJEhJImOLefn4o80x2Hy2SO5n2R kQQ10zUtz/6C9wLtGkAOAzy9CKQYnbjoM4dtULi7yq7MJcboSC+I18LoLi5eDSn6IplDNUhFTSn e5j+ao8wyNQHBb8X1CfCM2+FGs14g8YJ4ZafJwdGc4YIlwS8ncgh0= X-Google-Smtp-Source: AGHT+IEcDqV5qTwybf9oTHuZuPWATFnbgRMzvlgby+5Q8HbrTH9l4dhD/oPtAzqIO1wrCJgAO1+1nQ== X-Received: by 2002:a05:6402:50c7:b0:64b:3deb:80c2 with SMTP id 4fb4d7f45d1cf-64b3deb8358mr3458107a12.24.1765985118405; Wed, 17 Dec 2025 07:25:18 -0800 (PST) Received: from laurenz.albe-K4N0CV00F97414D ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-64b3f56aff2sm2663534a12.25.2025.12.17.07.25.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Dec 2025 07:25:18 -0800 (PST) Message-ID: <2a301859ab47c2e83ba5c8ebf75112d61246a8cd.camel@cybertec.at> Subject: Re: wal segment size From: Laurenz Albe To: Colin 't Hart , PostgreSQL General Date: Wed, 17 Dec 2025 16:25:17 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-2.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2025-12-17 at 16:13 +0100, Colin 't Hart wrote: > I see very little advice on tuning WAL=C2=A0segment=C2=A0size. >=20 > One of my clients has a few datawarehouses=C2=A0at around 8 - 16 TB >=20 > On one of the nodes there are approx 15000 WAL segments of 16MB each, tot= alling > approx 230GB. The archiver is archiving approx one per second, so approx = 4 hours to clear. >=20 > Would=C2=A0we gain anything by bumping the WAL=C2=A0segment size? Very likely yes, if the problem is the overhead of starting the archive_com= mand. Another thing that can slow down archiving is if you compress these segment= s too aggressively. Yours, Laurenz Albe