explain.depesz.com

PostgreSQL's explain analyze made readable

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

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.323 1,214.130 ↓ 203.0 203 1

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

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

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

3. 0.067 1,211.779 ↓ 203.0 203 1

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

4. 0.169 1,211.103 ↓ 203.0 203 1

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

5. 1.693 1,198.754 ↓ 203.0 203 1

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

6. 14.232 1,160.365 ↓ 4,587.0 4,587 1

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

7. 6.976 1,114.024 ↓ 4,587.0 4,587 1

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

8. 57.189 1,097.874 ↓ 4,587.0 4,587 1

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

  • Workers Planned: 2
  • Workers Launched: 2
9. 1,040.685 1,040.685 ↓ 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=983.629..1,040.685 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,922
10. 9.174 9.174 ↑ 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.002..0.002 rows=1 loops=4,587)

  • Index Cond: (romeo1.delta = quebec)
11. 32.109 32.109 ↑ 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.007..0.007 rows=1 loops=4,587)

  • Index Cond: (romeo1.four_delta = quebec)
12. 36.696 36.696 ↓ 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.008..0.008 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. 12.180 12.180 ↑ 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.060..0.060 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.161 ms
Execution time : 1,214.322 ms