explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 4Rms : Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: plan #XHT8; plan #VT6p; plan #3B7m; plan #i57iN; plan #kmS; plan #1cmJ; plan #O7Gn; plan #KqxH; plan #FpgV; plan #y4xt

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.004 25.047 ↑ 1.4 41 1

Limit (cost=7,612.76..7,612.91 rows=58 width=3,816) (actual time=25.033..25.047 rows=41 loops=1)

2. 0.096 25.043 ↑ 1.4 41 1

Sort (cost=7,612.76..7,612.91 rows=58 width=3,816) (actual time=25.032..25.043 rows=41 loops=1)

  • Sort Key: lima_delta1.quebec_seven
  • Sort Method: quicksort Memory: 189kB
3. 0.034 24.947 ↑ 1.4 41 1

Nested Loop Left Join (cost=2.11..7,611.06 rows=58 width=3,816) (actual time=0.202..24.947 rows=41 loops=1)

4. 0.034 24.913 ↑ 1.4 41 1

Nested Loop (cost=1.83..7,593.95 rows=58 width=1,795) (actual time=0.200..24.913 rows=41 loops=1)

5. 0.018 24.838 ↑ 1.4 41 1

Nested Loop (cost=1.56..7,576.98 rows=58 width=1,473) (actual time=0.194..24.838 rows=41 loops=1)

6. 0.020 24.697 ↑ 1.4 41 1

Nested Loop (cost=1.12..7,425.36 rows=57 width=1,417) (actual time=0.186..24.697 rows=41 loops=1)

7. 0.117 0.117 ↑ 1.0 1 1

Seq Scan on echo_zulu mike_quebec (cost=0.00..73.96 rows=1 width=664) (actual time=0.104..0.117 rows=1 loops=1)

  • Filter: (quebec_seven = 81)
  • Rows Removed by Filter: 396
8. 0.038 24.560 ↑ 1.4 41 1

Nested Loop (cost=1.12..7,350.83 rows=57 width=753) (actual time=0.080..24.560 rows=41 loops=1)

  • Join Filter: (lima_delta1.four_sierra = romeo1.quebec_seven)
  • Rows Removed by Join Filter: 82
9. 0.041 24.522 ↑ 1.4 41 1

Nested Loop (cost=1.12..7,339.22 rows=57 width=705) (actual time=0.073..24.522 rows=41 loops=1)

10. 0.048 24.399 ↑ 1.4 41 1

Nested Loop (cost=0.84..7,240.72 rows=57 width=580) (actual time=0.068..24.399 rows=41 loops=1)

11. 24.269 24.269 ↑ 1.4 41 1

Index Scan using papa_yankee on foxtrot quebec_sierra (cost=0.56..7,124.62 rows=57 width=295) (actual time=0.060..24.269 rows=41 loops=1)

  • Index Cond: ((lima_romeo)::text = 'quebec_quebec'::text)
  • Filter: (((NOT papa_bravo) OR (papa_bravo five NULL)) AND (mike_seven >= 'golf_xray'::timestamp without time zone) AND (juliet = 81))
  • Rows Removed by Filter: 26,969
12. 0.082 0.082 ↑ 1.0 1 41

Index Scan using sierra_delta on sierra_three whiskey_six (cost=0.28..2.04 rows=1 width=285) (actual time=0.002..0.002 rows=1 loops=41)

  • Index Cond: (quebec_seven = lima_delta1.lima_echo)
13. 0.082 0.082 ↑ 1.0 1 41

Index Scan using kilo_charlie on golf_five uniform_romeo (cost=0.28..1.73 rows=1 width=125) (actual time=0.002..0.002 rows=1 loops=41)

  • Index Cond: (quebec_seven = lima_delta1.two)
14. 0.000 0.000 ↑ 4.3 3 41

Materialize (cost=0.00..1.19 rows=13 width=48) (actual time=0.000..0.000 rows=3 loops=41)

15. 0.004 0.004 ↑ 4.3 3 1

Seq Scan on tango four_uniform (cost=0.00..1.13 rows=13 width=48) (actual time=0.004..0.004 rows=3 loops=1)

16. 0.123 0.123 ↑ 1.0 1 41

Index Scan using charlie on uniform_kilo victor (cost=0.43..2.65 rows=1 width=56) (actual time=0.003..0.003 rows=1 loops=41)

  • Index Cond: (sierra_foxtrot = lima_delta1.quebec_seven)
17. 0.041 0.041 ↑ 1.0 1 41

Index Scan using kilo_kilo on oscar yankee (cost=0.28..0.29 rows=1 width=322) (actual time=0.001..0.001 rows=1 loops=41)

  • Index Cond: (quebec_seven = echo_seven1.four_delta)
18. 0.000 0.000 ↓ 0.0 0 41

Index Scan using uniform_golf on whiskey_tango hotel (cost=0.28..0.30 rows=1 width=2,013) (actual time=0.000..0.000 rows=0 loops=41)

  • Index Cond: (echo_seven1.delta = quebec_seven)
Planning time : 6.686 ms
Execution time : 25.289 ms