Re: EXPLAIN with anonymous DO block?

From: Michael Lewis <mlewis(at)entrata(dot)com>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: EXPLAIN with anonymous DO block?
Date: 2021-07-01 16:21:39
Message-ID: CAHOFxGq=RuXOwLt5S7A-+zEyRP6J14Ym4R3TYRK55CEM3Vq+Pg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-07-01 16:27:35 Re: EXPLAIN with anonymous DO block?
Previous Message Ron 2021-07-01 16:16:25 EXPLAIN with anonymous DO block?