Hi, I'm very interested in the auto-explain feature. Are there any plans to re-add it in the next commit-fest?
Dean Rasheed <[EMAIL PROTECTED]> wrote: > > Please do not export ExplainState --- that's an internal matter for > > explain.c. Export some wrapper function with a cleaner API than > > explain_outNode, instead. > > OK, that's much neater. How about the attached patch? I exported initialization of ExplainState and explain_outNode call to a new function ExplainOneResult. It receives executor nodes and returns the tree as a text. I think it'd be better to implement the auto-explain feature not as a core feature but as an extension, because various users have various desires about the feature. We could write a small extension moudle using hooks and the ExplainOneResult function. If we includes the extension as a contrib module, users can mofify it and install customized version of auto-explain. Regards, --- ITAGAKI Takahiro NTT Open Source Software Center
export_explain.patch
Description: Binary data
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers