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 1up8Vy-00HHX7-EW for pgsql-general@arkaria.postgresql.org; Thu, 21 Aug 2025 16:51:52 +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 1up8Vx-0009Qg-UE for pgsql-general@arkaria.postgresql.org; Thu, 21 Aug 2025 16:51:50 +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 1up8Vx-0009QX-Ju for pgsql-general@lists.postgresql.org; Thu, 21 Aug 2025 16:51:50 +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 1up8Vv-00135O-1F for pgsql-general@lists.postgresql.org; Thu, 21 Aug 2025 16:51:49 +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=PqNlF/nuGo1x0qSW0A7li2yIFTwJ5Sb6Gu/3TmR8FxU=; b=Dg1OhJN9IaVQaYjtc2HjvluFVU BNpyWR5ZZDi0mo+HJ4b/zpXKnzMXFOyYU8UtzQHY0V3VpivMPfOw1xLljxh3/orJ6tgDRv0XC2JdZ YF5N4o8QycoyF4jRL0fgrOsoYlKPzKyFXyJlkUYPr4vjT+s4Ekl7+ZLkSpbo4dirA3Nc=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1up8Vt-004dPF-0t; Thu, 21 Aug 2025 18:51:45 +0200 Date: Thu, 21 Aug 2025 18:51:45 +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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 21, 2025 at 08:59:03AM -0700, Adrian Klaver wrote: > Getting to the bottom of the bag of ideas: > Have you looked at the OS system log for the time period involved? Yes. Mostly dmesg. Nothing interesting logged around the time. > You mentioned this seemed to involve PREPARE and DISCARD ALL. > Is this the same set of statements or is it all over the place? No. From what I can tell it's random sample. > Also it would be helpful to know what bouncer you are actually using and > what mode you are running in? pgBouncer, version 1.23.1. As for more... mostly transaction pooling. Applications go using transaction pooling, but people (dbas, ops) have session pooling. Best regards, depesz