explain.depesz.com

PostgreSQL's explain analyze made readable

Result: p1v7 : Optimization for: plan #HjQ0y

Settings

Optimization path:

Optimization(s) for this plan:

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

WindowAgg (cost=8.74..361.27 rows=1 width=266) (actual rows= loops=)

2. 0.000 0.000 ↓ 0.0

Nested Loop Left Join (cost=8.74..361.26 rows=1 width=258) (actual rows= loops=)

3. 0.000 0.000 ↓ 0.0

Nested Loop (cost=2.75..355.24 rows=1 width=226) (actual rows= loops=)

4. 0.000 0.000 ↓ 0.0

Bitmap Heap Scan on ct_provisions xcp (cost=2.33..13.96 rows=5 width=17) (actual rows= loops=)

  • Recheck Cond: ((account_id)::bpchar = 'AC15060001813595'::bpchar)
  • Filter: ((master_account_id)::bpchar = 'AC13110000321682'::bpchar)
5. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on ix_ct_provisions_account_id (cost=0.00..2.33 rows=6 width=0) (actual rows= loops=)

  • Index Cond: ((account_id)::bpchar = 'AC15060001813595'::bpchar)
6. 0.000 0.000 ↓ 0.0

Index Scan using ix_ct_call_detail_log_provision_id on ct_call_detail_log xcd (cost=0.42..68.25 rows=1 width=243) (actual rows= loops=)

  • Index Cond: ((provision_id)::bpchar = (xcp.provision_id)::bpchar)
  • Filter: ((voice_file_status = 'AVAILABLE'::text) AND ((to_char(start_time, 'YYYY'::text))::integer = 2018) AND ((to_char(start_time, 'MM'::text))::integer = 8))
7. 0.000 0.000 ↓ 0.0

Aggregate (cost=5.99..6.00 rows=1 width=32) (actual rows= loops=)

8. 0.000 0.000 ↓ 0.0

Bitmap Heap Scan on ct_call_log_signals xls (cost=2.30..5.98 rows=2 width=12) (actual rows= loops=)

  • Recheck Cond: ((call_id)::bpchar = (xcd.call_id)::bpchar)
9. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on pk_ct_call_log_signals (cost=0.00..2.29 rows=2 width=0) (actual rows= loops=)

  • Index Cond: ((call_id)::bpchar = (xcd.call_id)::bpchar)