From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Premal Patel <premal.patel@veeva.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19076: Generic query plan is extremely slow
Date: Wed, 08 Oct 2025 13:41:03 +0200
Message-ID: <e196978c46177dbabd74d96f6c6d0214d5b8b82a.camel@cybertec.at> (raw)
In-Reply-To: <8FE9EC49-C928-406C-A37B-47AE4AB397DE@veeva.com>
References: <CAApHDvrtYT_eoqgGtR-6Z=s0upNv1NeiptdRdEEnVm2=osD8jg@mail.gmail.com>
<8FE9EC49-C928-406C-A37B-47AE4AB397DE@veeva.com>
On Wed, 2025-10-08 at 07:17 -0400, Premal Patel wrote:
> Would it be unsafe to set “plan_cache_mode” to “force_custom_plan”
> for the entirety of the connection?
No, that's not unsafe at all, but you'd lose the performance advantage
of reusing plans, which can be substantial for short statements.
Yours,
Laurenz Albe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: laurenz.albe@cybertec.at, premal.patel@veeva.com, dgrowleyml@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19076: Generic query plan is extremely slow
In-Reply-To: <e196978c46177dbabd74d96f6c6d0214d5b8b82a.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox