getting EXPLAIN output from inside a function

Поиск
Список
Период
Сортировка
От Joseph S
Тема getting EXPLAIN output from inside a function
Дата
Msg-id iopto2$1dc9$1@news.hub.org
обсуждение исходный текст
Список pgsql-general
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 <statement goes here> LOOP
                       RAISE NOTICE ''% '' , line;
              END LOOP;

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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: problem with parent/child table and FKs
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: SSDs with Postgresql?