pgsql: Add extension_state member to PlannedStmt.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add extension_state member to PlannedStmt.
Date: 2025-10-08 13:31:02
Message-ID: E1v6UFy-000g5l-1E@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2025-10-08 16:19:59 pgsql: Cleanup NAN code in float.h, too.
Previous Message Robert Haas 2025-10-08 13:05:53 pgsql: Add planner_setup_hook and planner_shutdown_hook.