Query plan without actually running the query?
Posted: Wed 25 Mar 2020 11:12
Is it possible to retrieve an execution plan without running the query.
The "Generate Execution Plan" appear to run a "EXPLAIN (ANALYZE, BUFFERS, FORMAT XML, VERBOSE) select .." .
My problem is that EXPLAIN ANALYZE will run the query, and if you have queries that have a hight cost, it will take a long time to get the plan.
I am searching for a way to run an explain without extra parameters. Which would then return without actually running the query.
I can ofcouse run it manually with the query: "explain select ...", but then i would not get any of the graphical layout of the plan.
The "Generate Execution Plan" appear to run a "EXPLAIN (ANALYZE, BUFFERS, FORMAT XML, VERBOSE) select .." .
My problem is that EXPLAIN ANALYZE will run the query, and if you have queries that have a hight cost, it will take a long time to get the plan.
I am searching for a way to run an explain without extra parameters. Which would then return without actually running the query.
I can ofcouse run it manually with the query: "explain select ...", but then i would not get any of the graphical layout of the plan.