postgresql/src/include/tcop
Robert Haas c83ac02ec7 Add ExplainState argument to pg_plan_query() and planner().
This allows extensions to have access to any data they've stored
in the ExplainState during planning. Unfortunately, it won't help
with EXPLAIN EXECUTE is used, but since that case is less common,
this still seems like an improvement.

Since planner() has quite a few arguments now, also add some
documentation of those arguments and the return value.

Author: Robert Haas <rhaas@postgresql.org>
Co-authored-by: Tom Lane <tgl@sss.pgh.pa.us>
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
2025-10-08 08:33:29 -04:00
..
backend_startup.h Sync typedefs.list with the buildfarm. 2025-06-15 13:04:24 -04:00
cmdtag.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
cmdtaglist.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
deparse_utility.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
dest.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
fastpath.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pquery.h Update various forward declarations to use typedef 2025-09-15 11:04:10 +02:00
tcopprot.h Add ExplainState argument to pg_plan_query() and planner(). 2025-10-08 08:33:29 -04:00
utility.h Update copyright for 2025 2025-01-01 11:21:55 -05:00