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 1upR1F-0055BN-T9 for pgsql-general@arkaria.postgresql.org; Fri, 22 Aug 2025 12:37:23 +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 1upR1F-005d1V-4A for pgsql-general@arkaria.postgresql.org; Fri, 22 Aug 2025 12:37:21 +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 1upR1E-005d1M-P3 for pgsql-general@lists.postgresql.org; Fri, 22 Aug 2025 12:37:21 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1upR1C-001BvK-15 for pgsql-general@lists.postgresql.org; Fri, 22 Aug 2025 12:37:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description; bh=caORgnwyhesRjDcrMuLR6OL1ixc6+XY3mjHRHDNVggU=; b=CE93P9bIQ/f2r9lM1NPnlxAhOB oG+Bn9X8IQYQT0jIEQbZUBxHccrn80Qnt1R1zjR0vCOvLLoeAzIkWg72WZvSwacbH/xERrjKJFZiz mx+0EJd+yIEvd2Jh21ZXJo/24uGIsZR9cMm4NAtNFdRXfd7fvn++kolBiHPZO5WnQYok=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1upR1A-00CFSS-2B; Fri, 22 Aug 2025 14:37:16 +0200 Date: Fri, 22 Aug 2025 14:37:16 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Adrian Klaver Cc: PostgreSQL General Subject: Re: Streaming replica hangs periodically for ~ 1 second - how to diagnose/debug Message-ID: Reply-To: depesz@depesz.com References: <05969854-0d19-4726-ae1b-586659dd443b@aklaver.com> <25334887-f1c3-40a1-94b0-753c7d67ae2b@aklaver.com> <2a3e4a8d-e8c2-46d6-ad7d-9e631ce6725e@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2a3e4a8d-e8c2-46d6-ad7d-9e631ce6725e@aklaver.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 21, 2025 at 11:17:27AM -0700, Adrian Klaver wrote: > Have you looked at?: > https://www.pgbouncer.org/changelog.html#pgbouncer-124x > To see if anything stands out. > Then there is: > https://www.pgbouncer.org/config.html#max_prepared_statements > The below may also be worth looking at: > https://github.com/pgbouncer/pgbouncer/pull/1144 > I can't help thinking that there is a caching issue at stake, though that is > just a guess. Will check, but we don't use prepared statements, so this doesn't seem to be part-of-the-problem. Best regards, depesz