From: | Melvin Davidson <melvin6925(at)yahoo(dot)com> |
---|---|
To: | Tim Uckun <timuckun(at)gmail(dot)com>, "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: Running explain analyze in a transaction |
Date: | 2015-04-10 18:32:12 |
Message-ID: | 484938569.577213.1428690732561.JavaMail.yahoo@mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
What you need to do is leave off ROLLBACK untilyou examine the output.
Or perhaps just redirect the output to capture the results.
IE:\o some_result_fileBEGIN;EXPLAIN ANALYZE blah;ROLLBACK;
However, perhaps a better thing to do is just leave out the ANALYZE as that is what causes the execution and only adds timing to the results. Melvin Davidson
Folk Alley - All Folk - 24 Hours a day
www.folkalley.com
From: Tim Uckun <timuckun(at)gmail(dot)com>
To: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>
Sent: Thursday, April 9, 2015 7:13 PM
Subject: [pgadmin-support] Running explain analyze in a transaction
I want to to do the following.
begin;
explain analyze blah
rollback;
If I do this I don't get the results of the analyze.
I have been resorting to commenting out the rollback and running it separately but it's a bit of a pain.
Is there an easier way to do this?
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Uckun | 2015-04-10 23:44:46 | Re: Running explain analyze in a transaction |
Previous Message | Guillaume Lelarge | 2015-04-10 14:50:52 | Re: Running explain analyze in a transaction |