EXPLAIN
EXPLAIN
EXPLAIN [ ( ANALYZE [, VERBOSE ] ) ] SELECT ...;
EXPLAIN shows the plan without executing the query. ANALYZE executes the query and includes
observed metrics for each node: inclusive time, rows delivered, and the number of loops.
VERBOSE adds an Output: line with the columns produced by each node.
The current subset accepts read-only queries only. EXPLAIN ANALYZE for INSERT, UPDATE,
DELETE, or another data-modifying statement returns 0A000. The BUFFERS option is not
supported yet.
WITH RECURSIVE plans may also include iterations, iteration_N_rows, duplicates,
spills, and plan-specific memory counters.