return text from explain

Поиск
Список
Период
Сортировка
От Willy-Bas Loos
Тема return text from explain
Дата
Msg-id CAHnozTiz4EjhAtNNt7mE1PDCieqfBz_qs4FMKM9wv8kQoH8UMQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: return text from explain  (Willy-Bas Loos <willybas@gmail.com>)
Re: return text from explain  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
Hi,

Is it possible to use the output of explain as text values?
This won't work:

explain select *
from (values (1),(2),(3)) foo(x)
where x > 2

What i really want is to explain analyze a dynamic query that i build up in a function.
If it returns a value i can do stuff with it, but i can't find out how to grasp the query plan as a value.

pgAdmin shows it as text values in the data output tab, but that might be a hack outside the database realm.

Cheers,

WBL
--
"Quality comes from focus and clarity of purpose" -- Mark Shuttleworth

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

Предыдущее
От: Willy-Bas Loos
Дата:
Сообщение: Re: pivot functions with variable number of columns
Следующее
От: Willy-Bas Loos
Дата:
Сообщение: Re: return text from explain