explain.depesz.com

PostgreSQL's explain analyze made readable

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

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.287 889.186 ↓ 203.0 203 1

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

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

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

3. 0.011 887.471 ↓ 203.0 203 1

Nested Loop (cost=1,001.54..149,674.31 rows=1 width=260) (actual time=733.678..887.471 rows=203 loops=1)

4. 0.271 886.851 ↓ 203.0 203 1

Nested Loop Left Join (cost=1,001.27..149,671.81 rows=1 width=268) (actual time=733.666..886.851 rows=203 loops=1)

5. 2.047 885.971 ↓ 203.0 203 1

Nested Loop (cost=1,000.99..149,671.50 rows=1 width=217) (actual time=733.654..885.971 rows=203 loops=1)

6. 3.030 865.576 ↓ 4,587.0 4,587 1

Nested Loop Left Join (cost=1,000.55..149,668.85 rows=1 width=110) (actual time=733.476..865.576 rows=4,587 loops=1)

7. 2.607 853.372 ↓ 4,587.0 4,587 1

Nested Loop Left Join (cost=1,000.28..149,666.36 rows=1 width=57) (actual time=733.465..853.372 rows=4,587 loops=1)

8. 66.541 832.417 ↓ 4,587.0 4,587 1

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

  • Workers Planned: 2
  • Workers Launched: 2
9. 765.876 765.876 ↓ 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=726.533..765.876 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,917
10. 18.348 18.348 ↑ 1.0 1 4,587

Index Scan using uniform_golf on whiskey papa_seven (cost=0.28..2.50 rows=1 width=41) (actual time=0.004..0.004 rows=1 loops=4,587)

  • Index Cond: (romeo1.delta = quebec)
11. 9.174 9.174 ↑ 1.0 1 4,587

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=4,587)

  • Index Cond: (romeo1.four_delta = quebec)
12. 18.348 18.348 ↓ 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.004..0.004 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
13. 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)
14. 0.609 0.609 ↑ 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.003 rows=1 loops=203)

  • Index Cond: (quebec = 2)
  • Heap Fetches: 203
15. 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)
Planning time : 2.517 ms
Execution time : 889.376 ms