getting EXPLAIN output from inside a function

Поиск
Список
Период
Сортировка
Искать

getting EXPLAIN output from inside a function

От:
Joseph S <jks@selectacast.net>
Дата:
I saw this in the mailing list archives without an answer, so for future
reference:

DECLARE
...
   line TEXT;
BEGIN
...
  FOR line IN  EXECUTE ''EXPLAIN ANALYZE  LOOP
                       RAISE NOTICE ''% '' , line;
              END LOOP;
FAQ