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 1uwkNH-006uEm-6U for pgsql-admin@arkaria.postgresql.org; Thu, 11 Sep 2025 16:42:19 +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 1uwkNF-0094hy-ET for pgsql-admin@arkaria.postgresql.org; Thu, 11 Sep 2025 16:42:17 +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 1uwkNF-0094ho-2f for pgsql-admin@lists.postgresql.org; Thu, 11 Sep 2025 16:42:17 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uwkND-001sJV-2I for pgsql-admin@lists.postgresql.org; Thu, 11 Sep 2025 16:42:16 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-33808d9e10bso8138051fa.0 for ; Thu, 11 Sep 2025 09:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757608933; x=1758213733; 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=wP2UMiQNLrdTRkR8f3rFEpIF+V9gn/eFb5AI/h1Ki6s=; b=hdNUfIc28xd1xotVCdcC1UG6LX3c9u6P63yW+7eHQm/VmzxnxKVHXfs68PAJiHdPHy YGdeK/PRbMw33B4TGVH8mL6gPXTPzu2TId3d4oZ2uWm5wDmBieN9CejPYBdYPRlH0HDp GKf0tdgc8mzQffr265tMUI8wCJxZVBy0qvRLo4fnGDD5wMROZAv2cResH9rEE5YnFdJR KwpoEII3x7+bMS4Ioe/xpZILke8fzTr/ahm9S21Iw4SpXwjzp/ph6ivrN16TJuei06Y/ lSRJR7PVIMeKNcJd6YzyKF6q3OAgEKJElM1ZCi3svhLkcK0SwSpxrVf1Ye4e4iesuEJj d1PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757608933; x=1758213733; 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=wP2UMiQNLrdTRkR8f3rFEpIF+V9gn/eFb5AI/h1Ki6s=; b=XIB5LjRgFy4hizg4zwtLwTUqW9gzSSaWHBzalRU5n91jEm+NJtUSNyGdimy7LfoMTf WsLAPjVrhhmyvHYa/yBaO+zxnLsq9tzSqtD3RpqqjgisquoWQKwslQIf+xqYk50vIvsj CaCMPhQg0JN8uC+RYLSNAWukEOTBE7G3IObkaQ2lU1CELVwUzInuWajRTSJWv6Yae3uL Yne6azHEQXz6NrlKLYW/jjSdZxqA0gduoCHiVuftG7H4Ox0HO8Pzmn0cbzGVVd/02Z6B SN9imyEk16oIm0FN+o0wLHGJM5j5RyxKrG2hOybMnm5fOOs6/vjNAY9Zen5oy0KtV9C6 9PXw== X-Gm-Message-State: AOJu0Ywjx/Vz26QceZQEbNyYjhg0CvxYJUQdeDvIVVPI3tz5yBMbU8LL vXYtATbpZDVTGT5T2O9tK4tg1Q+lryuDUE1C9I4OMAuuV1mQe8rC/wp4ltJrKCa7dLyatiox0ZH PmK1Xt5rGwfLpuEVHsJvejiIvwyv/yV1tGX6p X-Gm-Gg: ASbGnctO6s4XMVjUsdgt1H71urVnj2/Bv0WyaZux3uPTymVv8B2avwyMtwEOmITjdWg 19zzCZGubcwESQEhGzgH4iJCAN7JFWgxMDQ/0kF9Rct3JWYG7qFY8PbK1ffXBGvFaTDGU53xuBm JztvgpvjZoYhrlxI9lrWIQNFFN9/AZ7m6iqsnaMRqu+SMn9QXKhO59AY7Az/PdOLsNeiA3s4Rbe 5ZHDp0I/UH43LxuCDgde/tUL4WskDY7vJt/8yiN X-Google-Smtp-Source: AGHT+IHcBZuleFrczphGIZVoW6cSxC8/m03IQ1hgDBaVZ3qQ7sRJx0jNQIffhaUomg4J/Bj0i7FWD+KmIOtyKA1G2Qk= X-Received: by 2002:a2e:be9f:0:b0:350:5018:7827 with SMTP id 38308e7fff4ca-35050187b11mr4123441fa.11.1757608932454; Thu, 11 Sep 2025 09:42:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Raj Date: Thu, 11 Sep 2025 22:11:59 +0530 X-Gm-Features: Ac12FXxxneaOn4c1vh-_lJBuaF6VkDUH_7ITNYQbyTfHrT88OcZsngx37COTFQQ Message-ID: Subject: Re: Pgbouncer To: depesz@depesz.com Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="00000000000012b6a5063e89388c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000012b6a5063e89388c Content-Type: text/plain; charset="UTF-8" I am asking should we use pgbouncer? If so, what's the compelling situation despite having postgres inbuilt timeout parameters. On Thu, 11 Sept 2025, 19:25 hubert depesz lubaczewski, wrote: > 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 > > --00000000000012b6a5063e89388c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am asking should we use pgbouncer? If so, what's th= e compelling situation despite having postgres inbuilt timeout parameters.<= /div>
On Thu, 11 Sept 2025, 19:25 hubert depesz lubaczewski,= <depesz@depesz.com> wrote:<= br>
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/20= 12/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 abrupt= ly
> kill queries and if so, isn't it bad?

statement_timeout and transaction_timeout have the power to kill
queries, yes.

Best regards,

depesz

--00000000000012b6a5063e89388c--