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 1uckX2-00Gd3J-4y for pgsql-general@arkaria.postgresql.org; Fri, 18 Jul 2025 12:49:44 +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 1uckWz-00C5Lk-AY for pgsql-general@arkaria.postgresql.org; Fri, 18 Jul 2025 12:49:41 +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 1uckWy-00C5La-Qt for pgsql-general@lists.postgresql.org; Fri, 18 Jul 2025 12:49:41 +0000 Received: from mail-yw1-x112a.google.com ([2607:f8b0:4864:20::112a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uckWx-008RNH-0L for pgsql-general@lists.postgresql.org; Fri, 18 Jul 2025 12:49:41 +0000 Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-718409593b9so21319197b3.3 for ; Fri, 18 Jul 2025 05:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752842977; x=1753447777; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=+/HB8RXI5982U0cNKkqq6DNEaqsDwtAdmRUPAYWF2Ws=; b=KDRltFv1kOG4K/2dYGBPLIhsfnWJb9M4Uq+19JoGxfCGYNf9kaY/W0ejbmo/jUDi85 u1/flzEvc2q0kSe0/HEgxb4mQB3hxMwQUeEnqa0SNzB6VA2YvaIaFts2fRg+R/pjTXCE z/nn/Q+LdsesbVf9WFfj/vHjUQ4lGN36nkhEHGibpULLD9F9nnn2nlzmciZqVqPByyi2 S+oYz2NGJPhcNnrPJcp3pVl8UKDG5yP9xWocbzxxtm5/P6J/9L/mtezv76gJHWOOjWFU sy/NSjaJQ6hXRqzpU1s+gO1qxIn3kD8m9/KULOIQh9BrNIaq3ldqEJ2bD2EsRgQ92fAS 7uGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752842977; x=1753447777; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+/HB8RXI5982U0cNKkqq6DNEaqsDwtAdmRUPAYWF2Ws=; b=AgW5pWlgimnh329UMgTP5S3pCzilIyvh3NZLu6/8U6kC3PKZM91v6GBtdaVYhwpgJw MPaBB08gRpNcGQTrMC+p4F2gpCVz4g9l7T+XnOdu/TnX+L/a+APZeIoQUBPuLs1/ttiF uHws5g2xccuIGVmwK7bXEF955SPAM/f5TaoLW/B+hEI/I3rBKJ5rVNqlfbm38sppJie7 fkXCmFc1MfdQvEQLsilVnPRKqOaNgekFWU71j0TJWtDWVpT2kyDQFlJDq3Hq9c/r1eMH PK6EHJungEiMSS6BRF3HyGnxICWt/kUpko3rTivy+TGHtYbYC9kBfYuH/4mHydplCX83 fwwg== X-Gm-Message-State: AOJu0YxsN22+iU0J1XPQRCh8mcAuIjK6Ph+3Lw6/qeb3Sv+n+XBzpjhN Idm7qqIVZNhcci38LcY0Jii/5A6Td664RPk8Xkfy4kjqQVOPj5MQjPxHK0pYJ96BbxBnO2ByCjn JC3TcCmSXkmBo8oWwUQ+TADXhJ9RJz+Y+8Pj4 X-Gm-Gg: ASbGncvbvsoRTgrRKuexghKw9td0M5/U1vx0DXzLzBKWcO2h/B1qorfq/q1VCqaeBtE iO+4EDXqy6QGCc4oCP7Zo4wTciJCUhgOCzYkzEgFxci00svSdKIrY9DpiPvwfzpktttjXcUrw8a 6dCzK0f5QCED4uvilbCL6Ljnq3O4c+fRLa7mFtEZwCKJGZshFzqJNKbCXcdrn7BR/wjYmfHtDaV IduGhCj X-Google-Smtp-Source: AGHT+IEM76hrjTRaiKa3zr4ltVTELbdQ4YIfpn3fxDU9WdZ3m08oGCR1LGMGtb7hp/qUnQk3lpaI3iBxj9sL8MMLf5Q= X-Received: by 2002:a05:690c:6d09:b0:70f:83ef:ddf7 with SMTP id 00721157ae682-719521a90femr33274237b3.13.1752842977006; Fri, 18 Jul 2025 05:49:37 -0700 (PDT) MIME-Version: 1.0 From: KK CHN Date: Fri, 18 Jul 2025 18:22:55 +0530 X-Gm-Features: Ac12FXySGEh4RK88kzo_lpxVr8XsURppBaV5rBNSKlwcYJfBlEqRl6vzy4kZWks Message-ID: Subject: PgBouncer Prepared Statement ERROR To: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000fdd84b063a338eda" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000fdd84b063a338eda Content-Type: text/plain; charset="UTF-8" Hi , I am getting error when using PgBouncer(1.23.1 ) with Postgres 16 (RedHAT 9.4) 2025-07-18 00:00:00 IST ERROR: prepared statement "S_243" does not exist 2025-07-18 00:00:03 IST ERROR: prepared statement "S_205" does not exist 2025-07-18 00:00:03 IST ERROR: prepared statement "S_206" does not exist 2025-07-18 00:00:03 IST ERROR: prepared statement "S_207" does not exist How to avoid these prepared statement Errors ? Any hints most welcome, Krishane config as follows [root@pgbouncer ~]# grep ^[^';;;'] /usr/local/etc/pgbouncer.ini [databases] transaction_db = host=dbmain.erss.in port=5444 dbname= transaction_db mgt_db = host=dbmain.erss.in port=5444 dbname=mgt_db .................................... tsp_db = host=dbmain.erss.in port=5444 dbname=tsp_db [users] [pgbouncer] logfile = /var/log/pgbouncer/pgbouncer.log pidfile = /var/run/pgbouncer/pgbouncer.pid listen_addr = * listen_port = 5444 auth_type = md5 auth_file = /usr/local/etc/pgbouncer.users admin_users = myuser stats_users = status_user, pool_mode = transaction server_reset_query = DISCARD ALL server_reset_query_always = 1 ignore_startup_parameters = extra_float_digits, options, statement_timeout, idle_in_transaction_session_timeout max_client_conn = 5000 default_pool_size = 20 min_pool_size = 10 reserve_pool_size = 10 reserve_pool_timeout = 5 max_db_connections = 900 max_user_connections = 800 server_lifetime = 3600 server_idle_timeout = 60000 [root@pgbouncer ~]# --000000000000fdd84b063a338eda Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi ,

I am getting error when using= =C2=A0 PgBouncer(1.23.1 ) with=C2=A0 Postgres 16=C2=A0 (RedHAT 9.4)

2025-07-18 00:00:00 IST ERROR: =C2=A0prepared statement &= quot;S_243" does not exist
2025-07-18 00:00:03 IST ERROR: =C2=A0pre= pared statement "S_205" does not exist
2025-07-18 00:00:03 IST= ERROR: =C2=A0prepared statement "S_206" does not exist
2025-0= 7-18 00:00:03 IST ERROR: =C2=A0prepared statement "S_207" does no= t exist


How to avoid these prepared statem= ent Errors ?=C2=A0 =C2=A0


Any hints= most welcome,
Krishane

=C2=A0

config as follows
[root@pgbouncer ~]# grep ^[^= 9;;;;'] =C2=A0/usr/local/etc/pgbouncer.ini
[databases]
transactio= n_db =3D host=3Ddbmain.erss.in port= =3D5444 dbname=3D transaction_db
mgt_db =3D host=3Ddbmai= n.erss.in port=3D5444 dbname=3Dmgt_db
..............................= ......
tsp_db =3D host=3Ddbmain= .erss.in port=3D5444 dbname=3Dtsp_db
[users]
[pgbouncer]
logfi= le =3D /var/log/pgbouncer/pgbouncer.log
pidfile =3D /var/run/pgbouncer/p= gbouncer.pid
listen_addr =3D *
listen_port =3D 5444
auth_type =3D = md5
auth_file =3D /usr/local/etc/pgbouncer.users
admin_users =3D myus= er
stats_users =3D=C2=A0 status_user,
pool_mode =3D transaction
se= rver_reset_query =3D DISCARD ALL
server_reset_query_always =3D 1
igno= re_startup_parameters =3D extra_float_digits, options, statement_timeout, i= dle_in_transaction_session_timeout
max_client_conn =3D 5000
default_p= ool_size =3D 20
min_pool_size =3D 10
reserve_pool_size =3D 10
rese= rve_pool_timeout =3D 5
max_db_connections =3D 900
max_user_connection= s =3D 800
server_lifetime =3D 3600
server_idle_timeout =3D 60000
[= root@pgbouncer ~]#

--000000000000fdd84b063a338eda--