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 1uwhSQ-006PMW-54 for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Sep 2025 13:35:26 +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 1uwhSO-007e2t-6g for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Sep 2025 13:35:24 +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 1uwhSN-007e2l-TW for pgsql-hackers@lists.postgresql.org; Thu, 11 Sep 2025 13:35:24 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uwhSK-000CE7-0l for pgsql-hackers@lists.postgresql.org; Thu, 11 Sep 2025 13:35:23 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-61bd4a3f39cso171198eaf.0 for ; Thu, 11 Sep 2025 06:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757597719; x=1758202519; 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=f3VRgslmITFhnv5WyZ8VhbYNS08ZZxSH8MKJ+gcPAs0=; b=X0SEpsKJmvnSzD3aIQsDXc9etEIMKGhJVeM/XVrwQX/0q8SS5CttPIaKoVh4XZcCIG aiN6zEISLNPb3tVU9EeSjvHy8D4mv9GjQFWEr3eE27ZepYzxY4C7X3Y738SEkURi3/fi wsYkI4+fByiFzbthw1U0GaOjzUm2VfsWFKZeupvnNqpMAFDT7NBHK6l0MP5lKVsjtUGP sgGijea++tMQgs8Gm0xS4cc7tKYzsYccPNV0gKkeR8TmFMRafW0MhfMn8a8OSqmwsIYM /YmKIHw0pFZd2CAJ46x/8LQrfVCCvYh+JcwrRu9Iwn9+ZiAX2aKsPn7zgnwcsenLr7ON +Smw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757597719; x=1758202519; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f3VRgslmITFhnv5WyZ8VhbYNS08ZZxSH8MKJ+gcPAs0=; b=UZiuFWH+SHKccLFb3Ddk1tP7ExJgWe3aEI/rcYQfuKkuSrM38DaPZ9SiO9t/4I615g lnxpdoSOu1NDkkxVFbvbmGiAGYCCbbmJLhSudRc7KZ7jm9q95VQmF0yMUOmt8zaOrrJ3 WMlNJPR3QVkrN0dvQKCTAv+r1q0JP/4q2hWueDzQDNg7VfAIb5Whk8GQsl0c4fbfz0G0 SLmyiwZgyFh8X4981QIZ3LpyN4YuF8NbhdQcbj4LAEqfawt1olvTrYNM7KXDBufSw2pv neXNNp0xmaI8ofQkZgl7dXZtWy1+nNPNuzSXpsgJ1Jo8zVWyXIrcvYcE1jnw6wDvRTmx 4hqg== X-Forwarded-Encrypted: i=1; AJvYcCWvUud2TvjQ3OBFrdg+8Aw5BlK3RSvAtoZzEhq1dC3PxYS0tHusYfyX6viw02xo/5tueH6F6rffIFN2i4dF@lists.postgresql.org X-Gm-Message-State: AOJu0YytM4qftOtk1NYaAYdi+kp0HGvOQMT5AuRPD5JHg+fr2y+CrwtT kt+m9ug9Yp0SwKRO5v1Ipjk6WwB/561ntqfM7ylJx/wKzIOLBmCee9ejOIm5ZhKGfhIKdAtP5dw 29/q8ab1jTZCS8qVrsb9qwYKerQQgBYY= X-Gm-Gg: ASbGncs8qRKxb2T7S/p6JJbOt8AARzRFi/zMwS4SMZqSpnEcnBb7P2FYBMe+gfobCeP poJYQ7NGCzLgOi2Ljq3R96VUGF0DNBx7wAfStt0JD5xAGxZALzFtGn+adPn+EtPFfjL42g2jIEW oDHn31QK5JFczUjwIT+NbCU+7pVkH3FzcL1Zq3oXRl9YvjOj9Hq0p46hlXj6bUoYWBX7orP+Fwg bi7Tc4FILoBfmJHtPB/FvfYtoobE0aIsGLHs3VGficzO1brljeMBd1s7DKxhwbcIoURBXbzAQ== X-Google-Smtp-Source: AGHT+IGZtcJ8wXlgMfi/xzR/2UxYHMYUoWU3wUvgmbjwJr/+9BcaAl/l6fLV25Vu20jZNA/ZLHsiaxtJzJxudPcdAFM= X-Received: by 2002:a05:6820:1ace:b0:61e:2be3:97b4 with SMTP id 006d021491bc7-62178a0e68amr7973651eaf.2.1757597719401; Thu, 11 Sep 2025 06:35:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kouber Saparev Date: Thu, 11 Sep 2025 16:35:01 +0300 X-Gm-Features: Ac12FXyn6DMvfwLT3Y30Smbcf_DNdhM6BD0nPQ5_1yMXmH_gYRr1j6ovwhLJzfQ Message-ID: Subject: Re: BF mamba failure To: Michael Paquier Cc: Bertrand Drouvot , pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000b91902063e869bf9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000b91902063e869bf9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=9D=D0=B0 =D1=87=D1=82, 11.09.2025=E2=80=AF=D0=B3. =D0=B2 2:28 Michael P= aquier =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0: > As a start, are these failures only in the startup process? Has the > startup process reached a consistent state when the problem happens > because the replay code is too eager at removing the stats entries? > Has it not reached a consistent state. These could be useful hints to > extract a reproducible test case, looking for common patterns. > The pattern is the same, although I am not 100% sure that the same replica is having this - it is a cascaded streaming replica, i.e. a replica of another replica. Once we had this in October 2024, with version 15.4, then in August 2025 with 17.3, and now in September again (17.3). The database is working for month(s) perfectly fine in a heavy production workload (lots of WALs etc.), and then all of a sudden it shuts down. Thanks for the feedback, and let me know if I could provide any additional info. -- Kouber --000000000000b91902063e869bf9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=D0=9D=D0=B0 =D1=87=D1=82, 11.09.2025=E2=80=AF=D0=B3.= =D0=B2 2:28 Michael Paquier <mic= hael@paquier.xyz> =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0:
As a start, are these failures only in the startup process= ?=C2=A0 Has the
startup process reached a consistent state when the problem happens
because the replay code is too eager at removing the stats entries?
Has it not reached a consistent state.=C2=A0 These could be useful hints to=
extract a reproducible test case, looking for common patterns.

The pattern is the same, although I am not 100% sure that the = same replica is having this - it is a cascaded streaming replica, i.e. a re= plica of another replica. Once we had this in October 2024, with version 15= .4, then in August 2025 with 17.3, and now in September again (17.3). The d= atabase is working for month(s) perfectly fine in=C2=A0a heavy production w= orkload (lots of WALs etc.), and then all of a sudden it shuts down.
Thanks for the feedback, and let me know if I could provide any additional= info.=C2=A0

--
Kouber
--000000000000b91902063e869bf9--