Re: machine-readable explain output

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: machine-readable explain output
Дата
Msg-id 11384.1244993324@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: machine-readable explain output  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: machine-readable explain output  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Sat, Jun 13, 2009 at 6:40 PM, Tom Lane<tgl@sss.pgh.pa.us> wrote:
>> I believe we have things set up so that you can still print "xml" data
>> without libxml configured in. �We'd need to be sure casting to text
>> works too, but other than that I don't see an issue here.

> Hmm, I just tried to do this by modifying ExplainResultDesc to use
> XMLOID rather than TEXTOID when stmt->format == EXPLAIN_FORMAT_XML,
> and sure enough, explain (format xml) ... fails when --with-libxml is
> not specified.

That's because the code goes through BuildTupleFromCStrings, which
invokes xml_in in this scenario, and xml_in (as opposed to xml_out)
does depend on libxml.

However, using BuildTupleFromCStrings is wasteful/stupid for *both*
text and xml output, so it seems like getting rid of it is the thing
to do here.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: machine-readable explain output
Следующее
От: Petr Jelinek
Дата:
Сообщение: Re: [GENERAL] Using results from DELETE ... RETURNING