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 1rBc9E-00BYys-HF for pgsql-admin@arkaria.postgresql.org; Fri, 08 Dec 2023 14:48:12 +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 1rBc9A-008aRf-2R for pgsql-admin@arkaria.postgresql.org; Fri, 08 Dec 2023 14:48:08 +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 1rBc99-008aRX-NK for pgsql-admin@lists.postgresql.org; Fri, 08 Dec 2023 14:48:07 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rBc96-00AopG-SW for pgsql-admin@lists.postgresql.org; Fri, 08 Dec 2023 14:48:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3B8EljHY1436715; Fri, 8 Dec 2023 09:47:45 -0500 From: Tom Lane To: Achilleas Mantzios - cloud cc: pgsql-admin@lists.postgresql.org, nc@gatewaynet.com, Achilleas Mantzios Subject: Re: application_name backend (not) reporting back to the client : pgbouncer, PgSQL 16.1, pgbouncer 1.21.0 In-reply-to: References: Comments: In-reply-to Achilleas Mantzios - cloud message dated "Fri, 08 Dec 2023 12:21:30 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1436713.1702046865.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Fri, 08 Dec 2023 09:47:45 -0500 Message-ID: <1436714.1702046865@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Achilleas Mantzios - cloud writes: > For the past few days now we were investigating a strange issue that > affected our new test environment  : PostgreSQL 16.1 with pgbouncer > 1.21.0 . We tested with previous versions of pgbouncer against PgSQL > 16.1 and 10.23 and the conclusion was the problem existed only against > pgsql 16 no matter the pgbouncer version. Also the problem existed only > with pool_mode = transaction . Surely this is a pgbouncer issue that you need to discuss with the pgbouncer authors. PG does not keep multiple values of application_name per session, so you must not be connecting to the session you think you are. regards, tom lane