Tom Lane writes:
> The other possibility is to make EXPLAIN output look like a SELECT
> result. Not sure how hard this would be to do, but in the long run
> I suppose that would be the direction to move in.
You could internally rewrite it to something like
select explain('select * from pg_class;');
--
Peter Eisentraut peter_e@gmx.net