Re: generic options for explain

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: generic options for explain
Дата
Msg-id 4A196E59.9020409@dunslane.net
обсуждение исходный текст
Ответ на Re: generic options for explain  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: generic options for explain  (Robert Haas <robertmhaas@gmail.com>)
Re: generic options for explain  (Joshua Tolley <eggyknap@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pull raw text of a message by message-id
Следующее
От: Kenneth Marshall
Дата:
Сообщение: Re: [PATCH] cleanup hashindex for pg_migrator hashindex compat mode (for 8.4)