Re: machine-readable explain output v4

From: Mike <ipso(at)snappymail(dot)ca>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Csaba Nagy <nagy(at)ecircle-ag(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: machine-readable explain output v4
Date: 2009-08-12 15:32:45
Message-ID: 20090812083245.76c8a3e1@ipso.snappymail.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 12 Aug 2009 09:42:00 -0400
Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> One thing I have noticed that we should talk about is that the
> explain XML output doesn't contain the query that is being explained.
> That's unfortunate - it means that any logfile processor will need to
> extract the statement from the surrounding text rather than just
> pulling out the XML and passing it to an XML processor.

For the purposes I propose using the XML output for, not having the
original query in the XML itself is almost a show stopper. I assume the
original design of this feature had tools in mind that would actually
connect to PostgreSQL directly with commands being issued through the
tool itself.

I would like to create a website where users can paste or upload just
the XML output to and have enough information to do a full analysis of
the query that way.

Ideally this would include the raw query itself, column statistics
targets and ideally even some of the more important query
performance related GUC settings. I realize that could be a lot of
information that may not be needed otherwise, so if its only included
in the VERBOSE explain output, that would be more than fine, but just
having this information available increases the usefulness of such an
"outside" tool many times.

Again though, at the very least I think the raw query needs to be
included.

--
Mike

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-08-12 15:34:29 Re: WIP: getting rid of the pg_database flat file
Previous Message Csaba Nagy 2009-08-12 15:31:04 Re: machine-readable explain output v4