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: Add extension_state member to PlannedStmt.
Date: Wed, 08 Oct 2025 13:31:02 +0000
Message-ID: <E1v6UFy-000g5l-1E@gemulon.postgresql.org> (raw)

Add extension_state member to PlannedStmt.

Extensions can stash data computed at plan time into this list using
planner_shutdown_hook (or perhaps other mechanisms) and then access
it from any code that has access to the PlannedStmt (such as explain
hooks), allowing for extensible debugging and instrumentation of
plans.

Reviewed-by: Andrei Lepikhov <lepihov@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: http://postgr.es/m/CA+TgmoYWKHU2hKr62Toyzh-kTDEnMDeLw7gkOOnjL-TnOUq0kQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4685977cc51c91dda0f76b1ef71ba02823a57a1e

Modified Files
--------------
src/include/nodes/plannodes.h | 9 +++++++++
1 file changed, 9 insertions(+)



Message-ID: <E1v6UFy-000g5l-1E@gemulon.postgresql.org>
Permalink:  ../E1v6UFy-000g5l-1E@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1v6UFy-000g5l-1E@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add extension_state member to PlannedStmt.
  In-Reply-To: <E1v6UFy-000g5l-1E@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