Add planner_setup_hook and planner_shutdown_hook. These hooks allow plugins to get control at the earliest point at which the PlannerGlobal object is fully initialized, and then just before it gets destroyed. This is useful in combination with the extendable plan state facilities (see extendplan.h) and perhaps for other purposes as well.
Reviewed-by: Andrei Lepikhov <[email protected]> Reviewed-by: Tom Lane <[email protected]> Discussion: http://postgr.es/m/ca+tgmoywkhu2hkr62toyzh-ktdenmdelw7gkoonjl-tnouq...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/94f3ad3961a2cb32d30c79f01a70db4caff13318 Modified Files -------------- src/backend/optimizer/plan/planner.c | 14 ++++++++++++++ src/include/optimizer/planner.h | 13 +++++++++++++ 2 files changed, 27 insertions(+)
