explain.depesz.com

PostgreSQL's explain analyze made readable

Result: pCB3

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.000 774.006 ↓ 1.8 7 1

Nested Loop (cost=34,908.86..79,801.82 rows=4 width=266) (actual time=773.986..774.006 rows=7 loops=1)

  • Join Filter: (supplier.s_nationkey = nation_1.n_nationkey)
  • Rows Removed by Join Filter: 168
2.          

Initplan (forNested Loop)

3. 0.000 346.215 ↑ 1.0 1 1

Finalize Aggregate (cost=34,907.71..34,907.72 rows=1 width=32) (actual time=346.214..346.215 rows=1 loops=1)

4. 49.691 346.257 ↓ 1.5 3 1

Gather (cost=34,907.50..34,907.71 rows=2 width=32) (actual time=345.293..346.257 rows=3 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
5. 97.700 296.566 ↑ 1.0 1 3

Partial Aggregate (cost=33,907.50..33,907.51 rows=1 width=32) (actual time=296.566..296.566 rows=1 loops=3)

6. 198.866 198.866 ↑ 1.2 500,000 3

Parallel Seq Scan on orders orders_1 (cost=0.00..32,345.00 rows=625,000 width=8) (actual time=0.107..198.866 rows=500,000 loops=3)

7. 0.022 0.022 ↑ 1.0 25 1

Seq Scan on nation nation_1 (cost=0.00..1.25 rows=25 width=108) (actual time=0.020..0.022 rows=25 loops=1)

8. 0.024 773.975 ↓ 1.8 7 25

Materialize (cost=1.14..44,891.35 rows=4 width=166) (actual time=18.994..30.959 rows=7 loops=25)

9. 0.007 773.951 ↓ 1.8 7 1

Nested Loop (cost=1.14..44,891.33 rows=4 width=166) (actual time=474.845..773.951 rows=7 loops=1)

10. 0.003 773.846 ↓ 1.8 7 1

Nested Loop (cost=0.85..44,890.12 rows=4 width=140) (actual time=474.818..773.846 rows=7 loops=1)

11. 0.004 773.791 ↑ 1.0 1 1

Nested Loop (cost=0.42..44,855.00 rows=1 width=135) (actual time=474.780..773.791 rows=1 loops=1)

  • Join Filter: (customer.c_nationkey = nation.n_nationkey)
  • Rows Removed by Join Filter: 22
12. 0.004 773.775 ↑ 1.0 1 1

Nested Loop (cost=0.42..44,853.44 rows=1 width=35) (actual time=474.765..773.775 rows=1 loops=1)

13. 773.726 773.726 ↑ 1.0 1 1

Seq Scan on orders (cost=0.00..44,845.00 rows=1 width=16) (actual time=474.716..773.726 rows=1 loops=1)

  • Filter: (o_totalprice = $1)
  • Rows Removed by Filter: 1499999
14. 0.045 0.045 ↑ 1.0 1 1

Index Scan using pkcustomer on customer (cost=0.42..8.44 rows=1 width=27) (actual time=0.045..0.045 rows=1 loops=1)

  • Index Cond: (c_custkey = orders.o_custkey)
15. 0.012 0.012 ↑ 1.1 23 1

Seq Scan on nation (cost=0.00..1.25 rows=25 width=108) (actual time=0.011..0.012 rows=23 loops=1)

16. 0.052 0.052 ↑ 2.3 7 1

Index Scan using pklineitem on lineitem (cost=0.43..34.96 rows=16 width=13) (actual time=0.036..0.052 rows=7 loops=1)

  • Index Cond: (l_orderkey = orders.o_orderkey)
17. 0.098 0.098 ↑ 1.0 1 7

Index Scan using pksupplier on supplier (cost=0.29..0.30 rows=1 width=34) (actual time=0.014..0.014 rows=1 loops=7)

  • Index Cond: (s_suppkey = lineitem.l_suppkey)