explain.depesz.com

PostgreSQL's explain analyze made readable

Result: hr8E : Optimization for: Optimization for: plan #Rl3v; plan #3WDY

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

Finalize Aggregate (cost=13,706.78..13,706.79 rows=1 width=8) (actual rows= loops=)

2. 0.000 0.000 ↓ 0.0

Gather (cost=13,706.56..13,706.77 rows=2 width=8) (actual rows= loops=)

  • Workers Planned: 2
3. 0.000 0.000 ↓ 0.0

Partial Aggregate (cost=12,706.56..12,706.57 rows=1 width=8) (actual rows= loops=)

4. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.43..12,706.23 rows=45 width=8) (actual rows= loops=)

5. 0.000 0.000 ↓ 0.0

Parallel Seq Scan on part (cost=0.00..7,594.67 rows=202 width=30) (actual rows= loops=)

  • Filter: ((p_size >= 1) AND (((p_brand = 'Brand#52'::bpchar) AND (p_container = ANY ('{"SM CASE","SM BOX","SM PACK","SM PKG"}'::bpchar[])) AND (p_size <= 5)) OR ((p_brand = 'Brand#41'::bpchar) AND (p_container = ANY ('{"MED BAG","MED BOX","MED PKG","MED PACK"}'::bpchar[])) AND (p_size <= 10)) OR ((p_brand = 'Brand#33'::bpchar) AND (p_container = ANY ('{"LG CASE","LG BOX","LG PACK","LG PKG"}'::bpchar[])) AND (p_size <= 15))))
6. 0.000 0.000 ↓ 0.0

Index Scan using lineitem_l_partkey_l_quantity_l_shipmode_idx on lineitem (cost=0.43..25.29 rows=1 width=16) (actual rows= loops=)

  • Index Cond: ((l_partkey = part.p_partkey) AND (l_shipmode = ANY ('{AIR,"AIR REG"}'::bpchar[])))
  • Filter: ((l_shipinstruct = 'DELIVER IN PERSON'::bpchar) AND (((l_quantity >= '6'::double precision) AND (l_quantity <= '16'::double precision)) OR ((l_quantity >= '14'::double precision) AND (l_quantity <= '24'::double precision)) OR ((l_quantity >= '26'::double precision) AND (l_quantity <= '36'::double precision))) AND (((part.p_brand = 'Brand#52'::bpchar) AND (part.p_container = ANY ('{"SM CASE","SM BOX","SM PACK","SM PKG"}'::bpchar[])) AND (l_quantity >= '6'::double precision) AND (l_quantity <= '16'::double precision) AND (part.p_size <= 5)) OR ((part.p_brand = 'Brand#41'::bpchar) AND (part.p_container = ANY ('{"MED BAG","MED BOX","MED PKG","MED PACK"}'::bpchar[])) AND (l_quantity >= '14'::double precision) AND (l_quantity <= '24'::double precision) AND (part.p_size <= 10)) OR ((part.p_brand = 'Brand#33'::bpchar) AND (part.p_container = ANY ('{"LG CASE","LG BOX","LG PACK","LG PKG"}'::bpchar[])) AND (l_quantity >= '26'::double precision) AND (l_quantity <= '36'::double precision) AND (part.p_size <= 15))))