On 13 November 2016 at 22:31, Tom Lane <t...@sss.pgh.pa.us> wrote: > Andres Freund <and...@anarazel.de> writes: >> On 2016-11-13 17:20:05 -0500, Tom Lane wrote: >>> Why do you care? It's a pretty specialized hook. > >> Citus currently uses it to output additional information for distributed >> queries. I suspect we'll instead, for now, have to intercept EXPLAIN as >> a whole then :( (moving to custom plans unfortunately is still a bit off >> unfortunately). > > Seems like you might want a hook further down then, perhaps at > ExplainPrintPlan.
Fwiw I've found myself wishing for the same hook. I would like to add a feature for pg_stat_statements to make some easy way to look up the queryid for a given query. It seems like having it annotate EXPLAIN output would be ideal. -- greg