Complete the code to profile the execution of a query using EXPLAIN ANALYZE.
EXPLAIN [1] SELECT * FROM employees WHERE salary > 50000;
Using EXPLAIN ANALYZE runs the query and shows the actual execution details.
Complete the code to get a detailed query plan with timing and row counts.
EXPLAIN ([1] TRUE) SELECT * FROM orders WHERE order_date > '2023-01-01';
The ANALYZE TRUE option runs the query and shows timing and row counts.
Fix the error in the EXPLAIN statement to include actual execution statistics.
EXPLAIN ([1], FORMAT JSON) SELECT * FROM products;Adding ANALYZE runs the query and includes execution stats in the output.
Fill both blanks to show the query plan with buffers and actual execution time.
EXPLAIN ([1] TRUE, [2] TRUE) SELECT * FROM customers WHERE city = 'Paris';
Using ANALYZE TRUE runs the query and BUFFERS TRUE shows buffer usage.
Fill all three blanks to run the query, show buffers, and output in JSON format.
EXPLAIN ([1] TRUE, [2] TRUE, FORMAT [3]) SELECT * FROM sales WHERE amount > 1000;
This runs the query (ANALYZE TRUE), shows buffer usage (BUFFERS TRUE), and outputs the plan in JSON format (FORMAT JSON).