From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: doc: Note that plan advice does not affect cached plans
Date: Fri, 16 Oct 2026 21:26:40 +0000
Message-ID: <E1xHpRo-00000001viW-2PsE@gemulon.postgresql.org> (raw)
doc: Note that plan advice does not affect cached plans
Plan advice is consulted only at plan time. When a cached plan is
re-executed, no re-planning occurs, so updated advice has no effect.
DISCARD PLANS can be used to discard cached plans, but only affects
the sessions in which it is executed.
Reported-by: Noah Misch <noah@leadboat.com>
Suggested-by: Jakub Wartak <jakub.wartak@enterprisedb.com>
Discussion: https://postgr.es/m/20260827171830.68.noahmisch@microsoft.com
Co-authored-by: Dongpo Liu <poe.liu@pm.me>
Co-authored-by: Robert Haas <rhaas@postgresql.org>
Backpatch-through: 19
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a69ac3559823a81fb9b16aa77db450617ff80f14
Modified Files
--------------
doc/src/sgml/pgplanadvice.sgml | 12 ++++++++++++
doc/src/sgml/pgstashadvice.sgml | 8 ++++++++
2 files changed, 20 insertions(+)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: rhaas@postgresql.org
Subject: Re: pgsql: doc: Note that plan advice does not affect cached plans
In-Reply-To: <E1xHpRo-00000001viW-2PsE@gemulon.postgresql.org>
References: <E1xHpRo-00000001viW-2PsE@gemulon.postgresql.org>
* 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