pgbouncer transaction pool mode issue for prepared statements

From: Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: pgbouncer transaction pool mode issue for prepared statements
Date: 2026-02-16 13:24:44
Message-ID: CAJCZkoJr=Az5PMDj15O5ekzK+vK454WzoWZdQ9XUfTkTWtCQGw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi PGDG Team

We’re currently facing an issue with PgBouncer transaction pooling mode,
where prepared statements are failing, and we are unable to modify the
application code to disable or change how prepared statements are used.

Switching to session pooling mode is not feasible for us because we have a
very high number of connections that we cannot fully control. Environment
details: PgBouncer version: 1.25.1 PostgreSQL version: 16.11

The specific error we’re seeing is:

bind message has 43 result formats but query has 47 columns

ERROR: unnamed prepared statement does not exist Repeatedly logs

Has anyone encountered this issue with transaction pooling and prepared
statements? Are there any PgBouncer parameters or settings we can use to
mitigate this problem without requiring application‑level changes? Any
guidance or solutions would be greatly appreciated.

Regards
Durga Mahesh

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrien Obernesser (OBA) 2026-02-16 13:36:59 Re: pgbouncer transaction pool mode issue for prepared statements
Previous Message yudhi s 2026-02-16 12:22:32 Re: Question on execution plan and suitable index