Re: auto_explain produces invalid JSON

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: auto_explain produces invalid JSON
Дата
Msg-id 17663.1328991731@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: auto_explain produces invalid JSON  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: auto_explain produces invalid JSON  (Andrew Dunstan <andrew@dunslane.net>)
Re: auto_explain produces invalid JSON  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> But ExplainBeginOutput says:

>       case EXPLAIN_FORMAT_JSON:
>            /* top-level structure is an array of plans */
>            appendStringInfoChar(es->str, '[');

> Now that's not true in the auto-explain case, which prints one query + 
> one plan.

What about queries that expand to multiple plans because of rules?

> Since this is an exposed API, I don't think we can just change it. We 
> probably need a new API that does the right thing for beginning and 
> ending auto_explain output. (ExplainBeginLabeledOutput?)

I'm inclined to think that this is auto_explain's error, not that of
the core code, ie we should be changing the output.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: auto_explain produces invalid JSON
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: auto_explain produces invalid JSON