Re: Different execution plans in PG17 and pgBouncer... - Mailing list pgsql-general

From Álvaro Herrera
Subject Re: Different execution plans in PG17 and pgBouncer...
Date
Msg-id 202505051408.yhtnptcyduqf@alvherre.pgsql
Whole thread Raw
In response to Re: Different execution plans in PG17 and pgBouncer...  (Mladen Marinović <marin@kset.org>)
List pgsql-general
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/



pgsql-general by date:

Previous
From: SERHAD ERDEM
Date:
Subject: Re: Different execution plans in PG17 and pgBouncer...
Next
From: Achilleas Mantzios
Date:
Subject: Re: Different execution plans in PG17 and pgBouncer...