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.96) (envelope-from ) id 1wbNhc-002VBS-2Y for pgsql-admin@arkaria.postgresql.org; Sun, 21 Jun 2026 19:19:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wbNhb-003jza-1r for pgsql-admin@arkaria.postgresql.org; Sun, 21 Jun 2026 19:19:31 +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.96) (envelope-from ) id 1wbNhb-003jzS-0k for pgsql-admin@lists.postgresql.org; Sun, 21 Jun 2026 19:19:31 +0000 Received: from mail-ua1-x92e.google.com ([2607:f8b0:4864:20::92e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wbNhY-00000001dsk-3lx8 for pgsql-admin@lists.postgresql.org; Sun, 21 Jun 2026 19:19:30 +0000 Received: by mail-ua1-x92e.google.com with SMTP id a1e0cc1a2514c-9670ee3e87eso1097953241.0 for ; Sun, 21 Jun 2026 12:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782069566; cv=none; d=google.com; s=arc-20240605; b=VOpLQBFSqWa4vPzMk5YV5JrizQJaUt6vEIsdgiLiWr4URssitvw05hNPZJLz0mC6/s sfZpHKPxrDD6sLnwI07P51vgY5NmRSDVnnPKLEgww0e/I8vD/enfN5Z5K3pzYFWS+ioR wYqeYxCTYJERbGQSvzllGmiqqtSmynKvHFTkILWKjX97QXDg10e1zOUkg6my3WIsSRVu 0Q/HNbVATGwrX+Vq0pEx6w7s3qX4o9hBA3an6K89COdYpOgQ+YIbBER+mBYIoxO48bTT AiYRArAogU1KOh7ftLUn6VuXb81v+qJTayyoV6ylNR+GjZEmtjYERZBdazv2ZODfSj64 0KiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=KOpj/Ef0wiJFcscKWj5BCeKHUi7KX3DE5cRXk2nXW30=; fh=wdXGVzlufEJVTc6wMaMv0VsO7oswMxTqQBT0LXOkQhg=; b=aI4zvsRLC02OYBwQ6CQT28EDQRQlSIr+Zz+NB4Aksq9x7cZynXLSxpIxBUxRiXCkAy 53M7zSAnLXFM6dtHEhtFVMqRY0+UgpdLUROzaHGi6DH8aV7F43cYwo5v6bNlBlDn30OY /5ODsHgkzyo2RdTaShvOBr/y9SoPb3JGcuM2GMODKQbZC+8a4Oz5s10DjJCQwedAuF/U 3zl6nNN/Jm04O6OLQCB8BmVY/7qlI7pWerv/Gua5JwT8HtO+/JqdzdbFof/RNVvEy76w II7AXloldIqbgXGLOcaYNKizeqoZ7bdOzZyZy/QXsNY9FOQVE/ScBrcHhZlI/O+wAThA NtjA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782069566; x=1782674366; 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=KOpj/Ef0wiJFcscKWj5BCeKHUi7KX3DE5cRXk2nXW30=; b=UW7Qjb4S3i9Tq+wg0MvkHI/5uDb4LMqVkeSCsOfZmo+WOmQNg7fyrRA/rbtZUe62yr jPVwzWcG694StfKtR8wEJegNbthnQcsumAr/RNF1X/IgKaM0veiVYIeRc9XQMXg5da8M G9vMjVDN5u/3gEqcBCxSLnEkenwu0LgmXc5y/WwVFzsNVC1Ua8DAqdvl3l0rCYWCeQHx mjJ+wVUfox0I3Odr8YPcEqXdqDTg+aFYGuNDFMwRBzGT2ZAMjHNF5QHTvqkg1arnaZl+ TX2fuYDV4dgWawzNr1cfY63H3LPFd6++UYADfP05RHT6xCxGLTMC+UjlnM5yi+HvF7J4 SMdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782069566; x=1782674366; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KOpj/Ef0wiJFcscKWj5BCeKHUi7KX3DE5cRXk2nXW30=; b=N2/YlSuDKtJz00jFYyyfW5JZt8GbKKXi/uRvtzxdzsuRJEaktfOoYTiWgOGPYXyngc CkpOsz8RNLZIKNQseeZm5wJPvDOJ6Q31c+HPbcL8DlGZXDXpZWA39JYqY6dPhb/dCYp4 dx8zaeVcMFuMPIHIPa0Nt6bh0lRlNzFOAYY9uyILpYFKf6Affe4QUbxyTigmNtxhwl+J lbI51K0EisU6wP+BBZeVC5S0fJ3eBEE2X8jofuRWQepObdOWUxkcyrTrU63+r/Pn+9Ak KVSQPNGna7XOG64nlsNjer/3mLJJpHg1LDAKp+Cle+ouYw//FjZW5c61TcZAtjdOgOO6 la3A== X-Gm-Message-State: AOJu0Yyyk6duIogezOxtTZ6PNPcF/yp9F9ypxgovYGssXydMdoHGRPAh 6lYinuYEsqvqTRtGMOhf5ci258CjrJdkR1iQDR+yZfs2jAX1otgdLz39bf6KhN+9vSKPotLTuba QltOlLZ/l0up+HgbweNIJak5SBkNyWQ== X-Gm-Gg: AfdE7ckcAJaA8XjVzP5RPi/ZBynFiOGHwR18v2/lIy0dKS38gIRP2oGRYXqsxQdTZRa DCuHD5WNv5fAOCXgWiPfWI9+OBo3IFMeFoW8oLV6p3hblRocS2O+kSZAyURG7azrDGcTK/GnGPn S1Fy6wz25JGr9a01YlLqC4PVc1aUQvKEuK+GpsGtGZXU845emTkeHB6+2g+JxayndwoL3VF3F8y 6phz4SoIJPAnW/sDh2aXHpAqvDBf6QV3VOXByUis0u3cap0FwI7NFrEoIkUvq9zJueh/kP4tZ+C 7HuHXwyabzO5EH0GhV8nz5aJ5oDn X-Received: by 2002:a67:fd45:0:b0:6cf:2b61:3fa9 with SMTP id ada2fe7eead31-72a28dc5a83mr3197095137.10.1782069565814; Sun, 21 Jun 2026 12:19:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jeffery Janes Date: Sun, 21 Jun 2026 15:19:14 -0400 X-Gm-Features: AVVi8CdKj6SIMIY8faITpmlmyYNp3Qq6-4NLZrnmLLfXBWo-foGdNhAxvvG9S9s Message-ID: Subject: Re: TPS in direct Postgres Vs TPS in pgbouncer To: Raj Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="0000000000006f7d7c0654c86738" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006f7d7c0654c86738 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jun 21, 2026 at 9:24=E2=80=AFAM Raj w= rote: > Hi All, > > When the application team is using posytgres directly for 17.9 version, > they get necessary TPS. > > When they use pgbouncer, they get 50% reduction in TPS. > > What are general advices? > What is the transaction being used? If it is something very simple, like pgbench's built-in -S, then I think this is expected. Injecting pgbouncer doubles the amount of network/IPC thrashing needed. If you have a meaty transaction, this might not matter but on a very light transaction you might be doubling something which is already counting for 90% of the time. Cheers, Jeff --0000000000006f7d7c0654c86738 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Jun 21,= 2026 at 9:24=E2=80=AFAM Raj <rajeshkumar.dba09@gmail.com> wrote:
Hi All,

When the application team is using posytgres d= irectly for 17.9 version, they get necessary TPS.
When they use pgbouncer, they get 50% reduction i= n TPS.

What are general = advices?

What is the transactio= n being used?=C2=A0 If it is something very simple, like pgbench's=C2= =A0built-in -S, then I think this is expected.=C2=A0 Injecting pgbouncer do= ubles the amount of network/IPC thrashing needed.=C2=A0 If you have a meaty= transaction, this might not matter but on a very light transaction you mig= ht be doubling something which is already counting for 90% of the time.

Cheers,

Jeff
--0000000000006f7d7c0654c86738--