Hi,
I don't quite know what the hook in $subject was originally designed
for, but right now it has the problem that it's not invoked for EXPLAIN
EXECUTE. That's because ExplainExecuteQuery directly calls
ExplainOnePlan instead of ExplainOneQuery_hook.
Unfortunately that's not entirely trivial to fix, because the hook
accepts a Query, not a PlannedStmt.
Does anybody have a good way to fix this?
Greetings,
Andres Freund