Re: generic options for explain
От | Dave Page |
---|---|
Тема | Re: generic options for explain |
Дата | |
Msg-id | 937d27e10905240544u736fff16j26b4af0e5100a984@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: generic options for explain (Pavel Stehule <pavel.stehule@gmail.com>) |
Ответы |
Re: generic options for explain
|
Список | pgsql-hackers |
On Sun, May 24, 2009 at 12:31 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote: > Hello > > why we develop a new syntax? > > we should have a secondary function explain_query(query_string, > option) that returns setof some. Next function should be > explain_query_xml. I thing so for typical use EXPLAIN statement is > enough. And for machine procession some new function should be > perfect. I agree. We shouldn't be overloading EXPLAIN with a new option every time someone thinks of something new they'd like to see. XML EXPLAIN output would obviously be extensible and machine readable. We could easily produce a library of XSLT stylesheets to format the output in different ways without cluttering the server with extra code. The benefits to applications that want to read the output are also pretty obvious. -- Dave Page EnterpriseDB UK: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: