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

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: Dave Cole <davejohncole(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Capturing EXPLAIN ANALYZE for a query without discarding the normal result set
Date: 2014-01-14 03:13:09
Message-ID: CABRT9RDcYRT1JV7Lo-YwVzw2SLGCYq9cZqt-7urTsQy8d8yQDQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 14, 2014 at 5:06 AM, Dave Cole <davejohncole(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-01-14 03:14:20 Re: Capturing EXPLAIN ANALYZE for a query without discarding the normal result set
Previous Message Dave Cole 2014-01-14 03:06:20 Capturing EXPLAIN ANALYZE for a query without discarding the normal result set