Re: generic options for explain - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: generic options for explain
Date
Msg-id 4A196E59.9020409@dunslane.net
Whole thread Raw
In response to Re: generic options for explain  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: generic options for explain  (Robert Haas <robertmhaas@gmail.com>)
Re: generic options for explain  (Joshua Tolley <eggyknap@gmail.com>)
List pgsql-hackers

Robert Haas wrote:
>>> EXPLAIN ('hash_detail', 'on') query...
>>>       
>
> Oops, I should have written EXPLAIN (hash_detail 'on') query... can't
> follow my own syntax.
>
>   
>> I am sorry - this is really strange syntax . Who will use this syntax?
>> For some parser is little bit better function call, than parametrized
>> statement. Some dificulties with options should be fixed with named
>> param (we are speaking about 8.5).
>>
>> select explain_xml("select ...", true as hash_detail, ...)
>>     
>
> See to me THAT is a really strange syntax, so I guess we need some more votes.
>
>
>   

Both of these seem both odd an unnecessary. Why not just have a setting 
called, say, explain_format which governs the output?
   set explain_format = 'xml, verbose';   explain select * from foo;

No new function or syntax would be required.

cheers

andrew


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pull raw text of a message by message-id
Next
From: Kenneth Marshall
Date:
Subject: Re: [PATCH] cleanup hashindex for pg_migrator hashindex compat mode (for 8.4)