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 1vVvDc-009k1W-1Z for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 17:21:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vVvDa-00F6YM-2k for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 17:21:43 +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 1vVvDa-00F6YD-1h for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 17:21:43 +0000 Received: from mail-oo1-xc2b.google.com ([2607:f8b0:4864:20::c2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vVvDY-001GgP-1O for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 17:21:43 +0000 Received: by mail-oo1-xc2b.google.com with SMTP id 006d021491bc7-6574d7e451dso3580593eaf.0 for ; Wed, 17 Dec 2025 09:21:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765992098; x=1766596898; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GbuadbwEs586lVb7kJs/MU+DLOnwIqkm8ZEgPbpzSAU=; b=AyjxnHQ/mG4MkGHEH4n+ibAeDyWbZ0nNvB16LHis4kHl7ABJV0ClNXj+ufUApWBwvO 6GlMy48g17tstyqgRc43/WGdiVHknvL0jhrerMxVhTATCg7NjtB6tMsNwq2fW4uY9vrI 8IZkUFygY81bsr0NDhUjh9bH8clXWFfceQKC5B+heRjcWt0/wesEGZZvyT+6xQ1zZQLg pj2+kKncu/c2hvp7YRiU7IQ1ymQ/p/LIv3gdncIWs9cw+Tnaj4WAOsyLuGcjYLDCpMH3 lxifQJMAFHctIVPpLmiBZ3j28nxUvrKmSCHS0y+MKTKVJwzlA4YZHQW1mHYUxw1ceY+M gsgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765992098; x=1766596898; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GbuadbwEs586lVb7kJs/MU+DLOnwIqkm8ZEgPbpzSAU=; b=oGX36I2cXJmOlcSr8mbAFzvpFpLTgjcBqUfMRCXJor8Bfz1kBRv51vVgsRkR7gylwj xQO4lB4NR2WbUMXetXnUimaE26gsq65Umn3QRUw6GRiXxkxQWCz+mEsvdFhItlRvzgn3 mTz2jQgzrqb49K6Zk2xE7KB/HjZrDxsV3DzpSVJeNu3tMMhOTEEnIJNLyOQyVG73awnq wv2qEYNoT706LaOSf7Rj7BflHNZgZPzsrS8p7/mUXFhUQJvQNrTa3yi8wOYvmlV9gRmd UNNVfLri70EoM4gKaKdf+cFL5nS/INIGe76JDlt1hIfbqW4i8VtyudS8FVVUF/CJHpg0 oQRA== X-Forwarded-Encrypted: i=1; AJvYcCUSgOs+smcau0PMW1ND5qWuvSNpGdsfLaNMuU2n4/xcKN0MT1LwgDbPw3u9oMYc7ckNGwNFwrXxeigHVy1V@lists.postgresql.org X-Gm-Message-State: AOJu0YxuRPImX3fhQJPcdcO+uYciA/wltnQ9RTFs5UCbVTgcU+OceNPx QCS8vYH9h/xkpXQyTi10Kp/VrEKvvJ7nv/5379E8DUxSQWDRPI+VCV1mSiOg5kQsAgYFffj14Dg MYEzeDq7ZJWeErkmI42oKc/XzjR2lips= X-Gm-Gg: AY/fxX6tob4NWndxJTrcT6PRKY2qatmRf7VQBx3ZXkI3vox8/pYXDTA8YkC55ouIdud db/yX0IoriT5adoGbVZEmzhEIT2uwrcgtctpGn35a8o7SlClHB9EnLGBj50J53cIU3J6wnknF6V HkmdHMlwnzTEqmfy/KWmW2qvHuIlNN+ZTJ/eryFI3Dx8cxy9fFHxsZd8zfrKA1XXg3owSSEZXGE AmEkNEk9WzkgmLiMAn1aPYHCWJhechmSUfVRX4hC0gFJnQYWaH9vnhbaSX/XC2hdntitrzzn4bb GN0BYEeTUJWXUu3XySVWe8vgsQvzFRZ4XT+X6g== X-Google-Smtp-Source: AGHT+IH4jUAKl+Yn2mGgBzs2FIhMAeos0hFc+jaENqs/V1m+5jGcPYwflGdkraMkrFo6DtjkbByxnpIoWs+Qk23vv+Y= X-Received: by 2002:a05:6820:f0b:b0:657:6258:9dfd with SMTP id 006d021491bc7-65b455bbac3mr8308086eaf.7.1765992098233; Wed, 17 Dec 2025 09:21:38 -0800 (PST) MIME-Version: 1.0 References: <2a301859ab47c2e83ba5c8ebf75112d61246a8cd.camel@cybertec.at> In-Reply-To: From: Greg Sabino Mullane Date: Wed, 17 Dec 2025 12:21:03 -0500 X-Gm-Features: AQt7F2rsnNnU-KhTYZJAU7Ok2AnWH7OWS73XYjxKEWYLjj4ImAf0NPWPSiB9kQI Message-ID: Subject: Re: wal segment size To: "Colin 't Hart" Cc: Laurenz Albe , PostgreSQL General Content-Type: multipart/alternative; boundary="000000000000b0ff6806462913b3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b0ff6806462913b3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 17, 2025 at 11:10=E2=80=AFAM Colin 't Hart wrote: > Thanks Laurenz, that confirms what I was assuming. Archiving is via > pgbackrest to a backup server, over SSH. Approx 750ms to archive each > segment is crazy -- I'll check compression parameters too. > Switch to archive-async =3D on. When doing that, the typical time drops to 10ms or less. Also use a compress-type of lz4 or zst, which perform way better than the default gz. If you are encrypting, that's a bottleneck you just have to deal with, no shortcuts there. :) tl;dr try other things before messing with the WAL size. The current size can work very well even on very large and very, very busy systems. Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --000000000000b0ff6806462913b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 17, 2025 at 11:10=E2=80=AFAM = Colin 't Hart <colinthart@gm= ail.com> wrote:
T= hanks Laurenz, that confirms what I was assuming. Archiving is via pgbackre= st to a backup server, over SSH. Approx 750ms to archive each segment is cr= azy -- I'll check compression parameters too.

Switch to archive-async =3D on. When doing th= at, the typical time drops to 10ms or less. Also use a compress-type of lz4= or zst, which perform way better than the default gz. If you are encryptin= g, that's a bottleneck you just have to deal with, no shortcuts there. = :)

tl;dr try other things before messing with the = WAL size. The current size can work very well even on very large and very, = very busy systems.

Cheers,
Greg

--
Enterprise Pos= tgres Software Products & Tech Support

=
--000000000000b0ff6806462913b3--