EXPLAIN ANALYZE a query postgres

Show query plan with actual timings and buffer usage

psql -U myuser -d mydb -c 'EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT) SELECT * FROM orders WHERE status = $1;'
more postgres all 29 commands →