Re: EXPLAIN with anonymous DO block? - Mailing list pgsql-general

From Michael Lewis
Subject Re: EXPLAIN with anonymous DO block?
Date
Msg-id CAHOFxGq=RuXOwLt5S7A-+zEyRP6J14Ym4R3TYRK55CEM3Vq+Pg@mail.gmail.com
Whole thread Raw
In response to EXPLAIN with anonymous DO block?  (Ron <ronljohnsonjr@gmail.com>)
Responses Re: EXPLAIN with anonymous DO block?  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-general
It sounds like you are wanting to run 'explain analyze [query]' inside a loop inside a DO block. That isn't possible as far as I know, but auto_explain and log_nested_statements should be able to let you profile the whole thing and perhaps you can pick out the part you want from the logs.

pgsql-general by date:

Previous
From: Ron
Date:
Subject: EXPLAIN with anonymous DO block?
Next
From: Tom Lane
Date:
Subject: Re: EXPLAIN with anonymous DO block?