explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 6hLh : Optimization for: Optimization for: plan #3czy; plan #AGRF

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.258 1,118.913 ↓ 203.0 203 1

Sort (cost=149,674.49..149,674.49 rows=1 width=386) (actual time=1,098.353..1,118.913 rows=203 loops=1)

  • Sort Key: romeo2.november, romeo8.three_zulu, romeo3.three_zulu
  • Sort Method: quicksort Memory: 129kB
2. 0.771 1,118.655 ↓ 203.0 203 1

Nested Loop Left Join (cost=1,001.68..149,674.48 rows=1 width=386) (actual time=1,058.555..1,118.655 rows=203 loops=1)

3. 0.047 1,117.478 ↓ 203.0 203 1

Nested Loop Left Join (cost=1,001.40..149,671.97 rows=1 width=204) (actual time=1,058.532..1,117.478 rows=203 loops=1)

4. 0.156 1,117.025 ↓ 203.0 203 1

Nested Loop Left Join (cost=1,001.12..149,669.47 rows=1 width=179) (actual time=1,058.523..1,117.025 rows=203 loops=1)

5. 0.112 1,116.666 ↓ 203.0 203 1

Nested Loop (cost=1,000.99..149,669.31 rows=1 width=182) (actual time=1,058.515..1,116.666 rows=203 loops=1)

6. 0.133 1,116.148 ↓ 203.0 203 1

Nested Loop Left Join (cost=1,000.72..149,666.81 rows=1 width=190) (actual time=1,058.502..1,116.148 rows=203 loops=1)

7. 1.678 1,115.406 ↓ 203.0 203 1

Nested Loop (cost=1,000.43..149,666.51 rows=1 width=139) (actual time=1,058.491..1,115.406 rows=203 loops=1)

8. 19.708 1,099.967 ↓ 4,587.0 4,587 1

Gather (cost=1,000.00..149,663.86 rows=1 width=32) (actual time=1,058.420..1,099.967 rows=4,587 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
9. 1,080.259 1,080.259 ↓ 1,529.0 1,529 3 / 3

Parallel Seq Scan on alpha four_uniform (cost=0.00..148,663.76 rows=1 width=32) (actual time=1,052.063..1,080.259 rows=1,529 loops=3)

  • Filter: (((NOT papa_bravo) OR (papa_bravo five_romeo NULL)) AND (kilo_sierra >= 'four_foxtrot'::timestamp without time zone) AND (kilo_sierra <= 'uniform_hotel'::timestamp without time zone))
  • Rows Removed by Filter: 1,835,914
10. 13.761 13.761 ↓ 0.0 0 4,587

Index Scan using victor on foxtrot_romeo foxtrot_juliet (cost=0.43..2.65 rows=1 width=123) (actual time=0.003..0.003 rows=0 loops=4,587)

  • Index Cond: (quebec = romeo1.sierra_foxtrot)
  • Filter: (((NOT papa_bravo) OR (papa_bravo five_romeo NULL)) AND (juliet = 2))
  • Rows Removed by Filter: 1
11. 0.609 0.609 ↑ 1.0 1 203

Index Scan using sierra_delta on sierra_three india (cost=0.28..0.30 rows=1 width=67) (actual time=0.003..0.003 rows=1 loops=203)

  • Index Cond: (romeo2.lima = quebec)
12. 0.406 0.406 ↑ 1.0 1 203

Index Only Scan using two on echo xray (cost=0.27..2.49 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=203)

  • Index Cond: (quebec = 2)
  • Heap Fetches: 203
13. 0.203 0.203 ↑ 1.0 1 203

Index Scan using uniform_romeo on tango five_echo (cost=0.14..0.15 rows=1 width=13) (actual time=0.001..0.001 rows=1 loops=203)

  • Index Cond: (romeo2.four_sierra = quebec)
14. 0.406 0.406 ↑ 1.0 1 203

Index Scan using uniform_golf on whiskey papa_seven (cost=0.28..2.50 rows=1 width=41) (actual time=0.002..0.002 rows=1 loops=203)

  • Index Cond: (romeo1.delta = quebec)
15. 0.406 0.406 ↑ 1.0 1 203

Index Scan using kilo_kilo on oscar three_quebec (cost=0.28..2.49 rows=1 width=69) (actual time=0.002..0.002 rows=1 loops=203)

  • Index Cond: (romeo1.four_delta = quebec)
Planning time : 2.156 ms
Execution time : 1,119.146 ms