Re: Capturing EXPLAIN ANALYZE for a query without discarding the normal result set

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема Re: Capturing EXPLAIN ANALYZE for a query without discarding the normal result set
Дата
Msg-id CABRT9RDcYRT1JV7Lo-YwVzw2SLGCYq9cZqt-7urTsQy8d8yQDQ@mail.gmail.com
обсуждение исходный текст
Ответ на Capturing EXPLAIN ANALYZE for a query without discarding the normal result set  (Dave Cole <davejohncole@gmail.com>)
Ответы Re: Capturing EXPLAIN ANALYZE for a query without discarding the normal result set  (Marti Raudsepp <marti@juffo.org>)
Список pgsql-hackers
On Tue, Jan 14, 2014 at 5:06 AM, Dave Cole <davejohncole@gmail.com> wrote:
> It would be really cool if you could direct the EXPLAIN ANALYZE output to a
> temporary table so that the query being analyzed could execute normally.

You can use the auto_explain contrib module to log the query plans of
slow(er) queries:
http://www.postgresql.org/docs/current/static/auto-explain.html

If you Really Need To, you can use the csvlog log format and import
that to a table, but really it's easier to use less/grep/etc.

Regards,
Marti



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

Предыдущее
От: Dave Cole
Дата:
Сообщение: Capturing EXPLAIN ANALYZE for a query without discarding the normal result set
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Capturing EXPLAIN ANALYZE for a query without discarding the normal result set