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 1uwhlq-006SrT-K5 for pgsql-admin@arkaria.postgresql.org; Thu, 11 Sep 2025 13:55:31 +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 1uwhlm-007gvm-7a for pgsql-admin@arkaria.postgresql.org; Thu, 11 Sep 2025 13:55:26 +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 1uwhll-007gve-Si for pgsql-admin@lists.postgresql.org; Thu, 11 Sep 2025 13:55:26 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uwhlh-000CNG-2z for pgsql-admin@lists.postgresql.org; Thu, 11 Sep 2025 13:55:25 +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=hp2NZp4+PV8GgoXOWwMkd79vo22Iet5awGZc40qRcaU=; b=t3FRWQA4892EICb9PzbVLop6wn KCJr2kfrJUYQpt0uZ0nPpZy1F++6eAuQUy9Oe/8T7EiASa7XpAkZPWxZSW4MUXaft9kXqMOSaVweX b2qkLe6JN+X14GjSZq5+FayLi4mbbgmMBNPuyevbmMmyT/AV6lQlM4vsBSobj/4jZu5U=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1uwhli-008i9g-04; Thu, 11 Sep 2025 15:55:22 +0200 Date: Thu, 11 Sep 2025 15:55:22 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Raj Cc: Pgsql-admin Subject: Re: Pgbouncer Message-ID: Reply-To: depesz@depesz.com References: 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, Sep 11, 2025 at 07:01:26PM +0530, Raj wrote: > We are migrating from oracle.to postgres and its done. > > Now as a DBA, to improve performance say idle connecting handling or > anything, if I want to recommend pgbouncer to the team, what's the > compelling reason would it be? https://www.depesz.com/2012/12/02/what-is-the-point-of-bouncing/ > I may ask them to handle connections from application end and they may say > ok but we still.may see idle connections are not closed. > > So, at point and for what compelling reason I should tell my manager, we > must go-ahead and use etc. > > We use pg17 and in postgres itself I know idle_session_timeount, > transaction_timeout, statement_timeout. Is this enough? Will it abruptly > kill queries and if so, isn't it bad? statement_timeout and transaction_timeout have the power to kill queries, yes. Best regards, depesz