From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Andrew Dunstan <andrew(dot)dunstan(at)pgexperts(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: explain root element for auto-explain |
Date: | 2009-08-19 15:53:49 |
Message-ID: | 200908191553.n7JFrnU25985@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Are we going to publish an XML DTD for EXPLAIN, or have we already?
---------------------------------------------------------------------------
Andrew Dunstan wrote:
>
> The attached tiny patch sets the <explain> root element for auto-explain
> XML output, so it looks something like this:
>
> <explain xmlns="http://www.postgresql.org/2009/explain">
> <Plan>
> <Node-Type>Result</Node-Type>
> <Startup-Cost>0.00</Startup-Cost>
> <Total-Cost>0.01</Total-Cost>
> <Plan-Rows>1</Plan-Rows>
> <Plan-Width>0</Plan-Width>
> </Plan>
> </explain>
>
> The JSON output looks like this:
>
> [
> "Plan": {
> "Node Type": "Result",
> "Startup Cost": 0.00,
> "Total Cost": 0.01,
> "Plan Rows": 1,
> "Plan Width": 0
> }
> ]
>
> This is worth doing in itself in the XML case for reasons previously
> explained, but it also makes it relatively easy to add a Query-Text node
> or some such to the structured output, which is very much worth having,
> and would be my next proposed step.
>
> cheers
>
> andrew
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2009-08-19 16:01:16 | Re: explain root element for auto-explain |
Previous Message | Shivesh Wangrungvichaisri | 2009-08-19 15:50:44 | BUG #4996: postgres.exe memory consumption keeps going up |