pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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-00000001viU-2Lbf@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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/26bd08fb5c069fbdf55867adc398cfca0f55d5c8

Modified Files
--------------
doc/src/sgml/pgplanadvice.sgml  | 12 ++++++++++++
doc/src/sgml/pgstashadvice.sgml |  8 ++++++++
2 files changed, 20 insertions(+)



view thread (2+ messages)  latest in thread

Message-ID: <E1xHpRo-00000001viU-2Lbf@gemulon.postgresql.org>
Permalink:  ../E1xHpRo-00000001viU-2Lbf@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xHpRo-00000001viU-2Lbf@gemulon.postgresql.org

 · 

reply

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-00000001viU-2Lbf@gemulon.postgresql.org>
  References: <E1xHpRo-00000001viU-2Lbf@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