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 1uBwUT-008WfB-I2 for pgsql-general@arkaria.postgresql.org; Mon, 05 May 2025 14:08:18 +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 1uBwUR-003zmM-4r for pgsql-general@arkaria.postgresql.org; Mon, 05 May 2025 14:08:15 +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 1uBwUQ-003zmE-44 for pgsql-general@lists.postgresql.org; Mon, 05 May 2025 14:08:14 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uBwUM-000Hlj-0F for pgsql-general@lists.postgresql.org; Mon, 05 May 2025 14:08:13 +0000 Received: from phl-compute-02.internal (phl-compute-02.phl.internal [10.202.2.42]) by mailfout.phl.internal (Postfix) with ESMTP id 52AE2138050A; Mon, 5 May 2025 10:08:08 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Mon, 05 May 2025 10:08:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1746454088; x= 1746540488; bh=B3TAnmPK27qzYWCmQYgjJMveXqoy4S9ac2x+07ahvvI=; b=j pUlLI7a80oraXQoFNn+e7EzTNKTTF0S0/Oj7Fi+jniiu2tQWpzEvZDNDktX12bRO xOz204VBWE2/5BvHzzm/PRCgHIEfNuDHvy5NS9UK0DKTGJrIqlXj0w9mlBm1b0dv XpWP6WU0VccCoGmuFEdj9XZ3z3yyrHwdv7MS7UIqFdZNcWBbF0Pw5WdFmbVvaCJy kMVnEEXvjY3SfpY/uEjLTIgLUHZ79GSE4Wu2VuIqQW1UAF+nN20Si787eeZGSBpu 1qlw4pwynu98AbItgmjb6M2rFtHm5x+gks4b3Xo2i5JYIqEjXDfUUmlr+Y25i2IS XbgD8QgnEGb8b2139CI5g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1746454088; x=1746540488; bh=B 3TAnmPK27qzYWCmQYgjJMveXqoy4S9ac2x+07ahvvI=; b=pCbf+eM5qypVZ85Cm JcTCgVNuOm44WfsX6nbX0bO+gkxkZ9sOVkdQyuD4bpEnYwDX9k+d4lpF2nrYYJl7 cBBHr985148HfEVzNL6VQ6eB8X/ht01+lOzKWCvBDZuXR+865q6/2XaITpb+ULSz V5AVJoz2gFrjtaKUwMD5v6PztttJJnoUxTrv8Fc8DYwVd9JygYnTJY07nQ736EJA QvY61pMwYqS8l9OwLYfeuCQvhzilaIsQw2KjaLJeAk5hr2821M0m3DCHElnjtKUv D2uBVmX348WLH1TqOTTSPgXPunRlHBKGR1/vAEa1Zmi+O6JNzIqmoFauPV/gKZxe k31Qw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvkedufedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuh hrihhlvghmuhdruggvqeenucggtffrrghtthgvrhhnpeetuedvheffkeevgfeuheevteev kefggedttdeufeeuheduuddthfeffffhjeefffenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtth hopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegrrdhmrghnthiiihhoshes tghlohhuugdrghgrthgvfigrhihnvghtrdgtohhmpdhrtghpthhtohepshgvrhhhrgguvg eshhhothhmrghilhdrtghomhdprhgtphhtthhopehmrghrihhnsehkshgvthdrohhrghdp rhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvsh hqlhdrohhrghdprhgtphhtthhopegvjhgsvghruggvtghirgeshigrhhhoohdrtghomh X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 5 May 2025 10:08:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1746454083; bh=DUIggmAAAyRmG223w1mqgbiTK2qbGB5R21YZGjmdkPI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ofsYMKuNoUY/kAq3F7w0QykXz9ngrLj1dsEx68nFbjnpbI28Zr1S4sJcGQes1lOW0 nNt5d7341gihZkzwZYdSAQtd0865rjJcwOkvi1gmVEtDhhgmWgcHcszfe7IzoSm2tC ahaoxkEtC0s3YtSw4wTjuJqZNs+pM0Ogn00GeCE1ijJkg/Fpu8IndBSsk9cZS6K2wy SiEzNVntIgt2G2D2sB5B7hgQ1aPiFuvyRZyw30miecJ+bui0X5sBK2Ben8UOtAafep QzVZG73Gs6In6kQUxOlS36DU/32P2C7kIQc3YR2ZG4QUIweT9xZqPSh7s0UDGdBAis kIfqQ5WLQ4efg== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id CB1F790; Mon, 5 May 2025 16:08:03 +0200 (CEST) Date: Mon, 5 May 2025 16:08:03 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Mladen =?utf-8?Q?Marinovi=C4=87?= Cc: "Efrain J. Berdecia" , SERHAD ERDEM , Achilleas Mantzios , "pgsql-general@lists.postgresql.org" Subject: Re: Different execution plans in PG17 and pgBouncer... Message-ID: <202505051408.yhtnptcyduqf@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-May-05, Mladen Marinović wrote: > Hi, > > Mystery not solved...but identified. The pool is in transaction mode and > some connections use set enable_mergejoin=off, but they do not set it back > to on. Maybe instead of "SET enable_mergejoin=off" these connections could be changed to use SET LOCAL enable_mergejoin=off. That way, the setting reverts to its original value automatically at the end of the transaction. It seems more appropriate when using transaction mode anyway. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/