Re: parse tree to XML format

Поиск
Список
Период
Сортировка
От matt
Тема Re: parse tree to XML format
Дата
Msg-id 985284.36523.qm@web113208.mail.gq1.yahoo.com
обсуждение исходный текст
Ответ на Re: parse tree to XML format  (Andres Freund <andres@anarazel.de>)
Ответы Re: parse tree to XML format  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: parse tree to XML format  (Greg Smith <greg@2ndquadrant.com>)
Список pgsql-hackers

--- On Mon, 12/28/09, Andres Freund <andres@anarazel.de> wrote:

> From: Andres Freund <andres@anarazel.de>
> Subject: Re: [HACKERS] parse tree to XML format
> To: pgsql-hackers@postgresql.org
> Cc: "Robert Haas" <robertmhaas@gmail.com>, "matt" <nuc233@yahoo.com>
> Date: Monday, December 28, 2009, 7:39 PM
> On Tuesday 29 December 2009 01:35:25
> Robert Haas wrote:
> > On Mon, Dec 28, 2009 at 7:32 PM, Andres Freund <andres@anarazel.de>
> wrote:
> > > On Monday 28 December 2009 22:30:44 matt wrote:
> > >> Is there some way to export the postgresql
> query parse tree in XML
> > >> format? I can not locate the API/Tool etc to
> do that...
> > >
> > > Thats more of a -general question.
> > >
> > > There is no such possibility in 8.4 - the not yet
> released 8.5 contains
> > > such a possibility.
> > 
> > Well, you can export the plan as XML using EXPLAIN
> (FORMAT XML), but
> > that's not the same thing as the query parse-tree.
> Uh. Err. Sorry.
> 
> You can play around with "debug_print_parse" but thats many
> things but 
> definitely not xml.
> 
> Matt, what are you trying to achieve?

We are trying to gather statistics about our queries and get automatic suggestions for what indexes to utilize ...its
easierto figure that on queries that are in some format else we have to effectively parse the queries ourself or hack
thepostgresql parser...which we dont want to do...
 

Did you mention that the 8.5 code has such a functionality? i would like to download the code and play with it a bit,
anypointers what i need to do to  get the XML?
 

regards
Matt


> 
> Andres
> 

     


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: parse tree to XML format
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: parse tree to XML format