explain.depesz.com

PostgreSQL's explain analyze made readable

Result: VwUk

Settings
# exclusive inclusive rows x rows loops node
1. 24.141 15,527.700 ↑ 2.1 12,136 1

Sort (cost=10,881,019.43..10,881,082.39 rows=25,184 width=794) (actual time=15,526.167..15,527.700 rows=12,136 loops=1)

  • Sort Key: rd.dt_inicio_terminal
  • Sort Method: quicksort Memory: 4,335kB
2. 4,822.211 15,503.559 ↑ 2.1 12,136 1

GroupAggregate (cost=124,261.24..10,879,178.45 rows=25,184 width=794) (actual time=430.664..15,503.559 rows=12,136 loops=1)

  • Group Key: mc.nm_modelo, ve.cd_identificador, rd.id_rd, tb_sos.qtd_sos, tb_sos.tempo_total_sos, tb_refeicao.qtd_refeicao, tb_refeicao.tempo_total_refeicao
3. 109.470 439.235 ↓ 1.5 38,617 1

Sort (cost=124,261.24..124,324.20 rows=25,184 width=616) (actual time=429.208..439.235 rows=38,617 loops=1)

  • Sort Key: mc.nm_modelo, ve.cd_identificador, rd.id_rd, tb_sos.qtd_sos, tb_sos.tempo_total_sos, tb_refeicao.qtd_refeicao, tb_refeicao.tempo_total_refeicao
  • Sort Method: quicksort Memory: 26,738kB
4. 19.673 329.765 ↓ 1.5 38,617 1

Nested Loop (cost=78,587.66..122,420.26 rows=25,184 width=616) (actual time=155.316..329.765 rows=38,617 loops=1)

5. 13.526 220.467 ↓ 1.5 17,925 1

Nested Loop (cost=78,587.24..108,717.74 rows=12,173 width=563) (actual time=155.292..220.467 rows=17,925 loops=1)

6. 3.818 182.669 ↓ 1.3 12,136 1

Hash Left Join (cost=78,586.80..85,345.36 rows=9,122 width=557) (actual time=155.270..182.669 rows=12,136 loops=1)

  • Hash Cond: ((rd.id_rd)::integer = (tb_refeicao.id_rd)::integer)
7. 2.657 101.800 ↓ 1.3 12,136 1

Hash Left Join (cost=41,346.98..48,081.59 rows=9,122 width=533) (actual time=78.201..101.800 rows=12,136 loops=1)

  • Hash Cond: ((rd.id_rd)::integer = (tb_sos.id_rd)::integer)
8. 3.423 24.108 ↓ 1.3 12,136 1

Hash Join (cost=424.31..7,134.97 rows=9,122 width=493) (actual time=3.150..24.108 rows=12,136 loops=1)

  • Hash Cond: ((rd.id_veiculo)::integer = (ve.id_veiculo)::integer)
9. 2.775 17.668 ↓ 1.3 12,136 1

Hash Join (cost=2.00..6,688.70 rows=9,122 width=487) (actual time=0.063..17.668 rows=12,136 loops=1)

  • Hash Cond: ((rd.id_modelo_coleta)::integer = (mc.id_modelo_coleta)::integer)
10. 14.879 14.879 ↓ 1.3 12,136 1

Index Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd (cost=0.43..6,659.13 rows=9,122 width=471) (actual time=0.038..14.879 rows=12,136 loops=1)

  • Index Cond: (((id_filial)::integer = 55) AND (dt_inicio_terminal >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio_terminal <= '2020-05-31 23:59:59-03'::timestamp with time zone))
11. 0.008 0.014 ↑ 1.0 25 1

Hash (cost=1.25..1.25 rows=25 width=24) (actual time=0.013..0.014 rows=25 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 10kB
12. 0.006 0.006 ↑ 1.0 25 1

Seq Scan on tb_modelo_coleta mc (cost=0.00..1.25 rows=25 width=24) (actual time=0.003..0.006 rows=25 loops=1)

13. 1.605 3.017 ↓ 1.0 10,330 1

Hash (cost=293.25..293.25 rows=10,325 width=14) (actual time=3.017..3.017 rows=10,330 loops=1)

  • Buckets: 16,384 Batches: 1 Memory Usage: 620kB
14. 1.412 1.412 ↓ 1.0 10,330 1

Seq Scan on tb_veiculo ve (cost=0.00..293.25 rows=10,325 width=14) (actual time=0.003..1.412 rows=10,330 loops=1)

15. 0.013 75.035 ↑ 10.7 3 1

Hash (cost=40,922.27..40,922.27 rows=32 width=44) (actual time=75.035..75.035 rows=3 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
16. 0.002 75.022 ↑ 10.7 3 1

Subquery Scan on tb_sos (cost=40,921.15..40,922.27 rows=32 width=44) (actual time=75.018..75.022 rows=3 loops=1)

17. 0.019 75.020 ↑ 10.7 3 1

GroupAggregate (cost=40,921.15..40,921.95 rows=32 width=44) (actual time=75.017..75.020 rows=3 loops=1)

  • Group Key: rd_1.id_rd
18. 0.016 75.001 ↑ 10.7 3 1

Sort (cost=40,921.15..40,921.23 rows=32 width=20) (actual time=75.000..75.001 rows=3 loops=1)

  • Sort Key: rd_1.id_rd
  • Sort Method: quicksort Memory: 25kB
19. 0.010 74.985 ↑ 10.7 3 1

Nested Loop (cost=2.00..40,920.35 rows=32 width=20) (actual time=28.308..74.985 rows=3 loops=1)

20. 0.023 74.951 ↑ 10.7 3 1

Nested Loop (cost=1.72..40,910.42 rows=32 width=24) (actual time=28.291..74.951 rows=3 loops=1)

  • Join Filter: ((o.id_modelo_ocorrencia)::integer = (mo.id_modelo_ocorrencia)::integer)
  • Rows Removed by Join Filter: 356
21. 7.123 74.881 ↑ 1.7 47 1

Nested Loop (cost=1.72..40,899.81 rows=81 width=28) (actual time=1.761..74.881 rows=47 loops=1)

22. 4.287 58.931 ↑ 2.2 8,827 1

Nested Loop (cost=1.29..29,296.85 rows=19,416 width=12) (actual time=0.063..58.931 rows=8,827 loops=1)

23. 4.539 22.036 ↑ 1.2 8,152 1

Nested Loop (cost=0.86..18,732.64 rows=9,385 width=12) (actual time=0.050..22.036 rows=8,152 loops=1)

24. 1.535 1.535 ↓ 1.1 7,981 1

Index Only Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd_1 (cost=0.43..255.13 rows=7,033 width=8) (actual time=0.035..1.535 rows=7,981 loops=1)

  • Index Cond: ((id_filial = 194) AND (dt_inicio_terminal >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio_terminal <= '2020-05-31 23:59:59-03'::timestamp with time zone))
  • Heap Fetches: 138
25. 15.962 15.962 ↑ 2.0 1 7,981

Index Scan using ix01f_tb_viagem on tb_viagem v1 (cost=0.43..2.61 rows=2 width=8) (actual time=0.002..0.002 rows=1 loops=7,981)

  • Index Cond: ((id_rd)::integer = (rd_1.id_rd)::integer)
26. 8.152 32.608 ↑ 7.0 1 8,152

Append (cost=0.43..1.06 rows=7 width=8) (actual time=0.002..0.004 rows=1 loops=8,152)

27. 16.304 16.304 ↑ 3.0 1 8,152

Index Scan using ix01f_tb_trecho_viagem on tb_trecho_viagem tv1 (cost=0.43..0.48 rows=3 width=8) (actual time=0.002..0.002 rows=1 loops=8,152)

  • Index Cond: ((id_viagem)::integer = (v1.id_viagem)::integer)
28. 8.152 8.152 ↓ 0.0 0 8,152

Index Scan using ix01f_tbtrechoviagemu20191111 on tb_trecho_viagem_clust_until_20191111 tv1_1 (cost=0.43..0.54 rows=4 width=8) (actual time=0.001..0.001 rows=0 loops=8,152)

  • Index Cond: ((id_viagem)::integer = (v1.id_viagem)::integer)
29. 8.827 8.827 ↓ 0.0 0 8,827

Index Scan using ix02f_tb_ocorrencia on tb_ocorrencia o (cost=0.43..0.59 rows=1 width=24) (actual time=0.001..0.001 rows=0 loops=8,827)

  • Index Cond: ((id_trecho_viagem)::integer = (tv1.id_trecho_viagem)::integer)
  • Filter: ((dt_inicio >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio <= '2020-05-31 23:59:59-03'::timestamp with time zone))
30. 0.042 0.047 ↑ 1.0 8 47

Materialize (cost=0.00..1.29 rows=8 width=4) (actual time=0.000..0.001 rows=8 loops=47)

31. 0.005 0.005 ↑ 1.0 8 1

Seq Scan on tb_modelo_ocorrencia mo (cost=0.00..1.25 rows=8 width=4) (actual time=0.004..0.005 rows=8 loops=1)

  • Filter: ((tp_ocorrencia)::smallint = 0)
  • Rows Removed by Filter: 12
32. 0.024 0.024 ↑ 1.0 1 3

Index Only Scan using pk00_tb_veiculo on tb_veiculo ve_1 (cost=0.29..0.31 rows=1 width=4) (actual time=0.008..0.008 rows=1 loops=3)

  • Index Cond: (id_veiculo = (rd_1.id_veiculo)::integer)
  • Heap Fetches: 0
33. 0.446 77.051 ↓ 318.4 1,592 1

Hash (cost=37,239.76..37,239.76 rows=5 width=28) (actual time=77.051..77.051 rows=1,592 loops=1)

  • Buckets: 2,048 (originally 1024) Batches: 1 (originally 1) Memory Usage: 110kB
34. 0.158 76.605 ↓ 318.4 1,592 1

Subquery Scan on tb_refeicao (cost=37,239.60..37,239.76 rows=5 width=28) (actual time=75.754..76.605 rows=1,592 loops=1)

35. 0.592 76.447 ↓ 318.4 1,592 1

GroupAggregate (cost=37,239.60..37,239.71 rows=5 width=28) (actual time=75.752..76.447 rows=1,592 loops=1)

  • Group Key: rd_2.id_rd
36. 0.785 75.855 ↓ 323.8 1,619 1

Sort (cost=37,239.60..37,239.61 rows=5 width=20) (actual time=75.738..75.855 rows=1,619 loops=1)

  • Sort Key: rd_2.id_rd
  • Sort Method: quicksort Memory: 175kB
37. 1.346 75.070 ↓ 323.8 1,619 1

Nested Loop (cost=467.30..37,239.54 rows=5 width=20) (actual time=11.583..75.070 rows=1,619 loops=1)

38. 1.608 72.105 ↓ 323.8 1,619 1

Hash Join (cost=467.02..37,238.00 rows=5 width=24) (actual time=11.569..72.105 rows=1,619 loops=1)

  • Hash Cond: ((v1_1.id_rd)::integer = (rd_2.id_rd)::integer)
39. 4.195 66.936 ↓ 2.0 6,027 1

Nested Loop (cost=23.03..36,786.29 rows=2,940 width=20) (actual time=7.328..66.936 rows=6,027 loops=1)

40. 0.000 50.687 ↓ 2.0 6,027 1

Nested Loop (cost=22.60..35,445.28 rows=2,940 width=20) (actual time=7.315..50.687 rows=6,027 loops=1)

41. 4.306 21.574 ↓ 2.0 6,027 1

Hash Join (cost=22.17..26,588.16 rows=2,940 width=20) (actual time=7.295..21.574 rows=6,027 loops=1)

  • Hash Cond: ((o_1.id_modelo_ocorrencia)::integer = (mo_1.id_modelo_ocorrencia)::integer)
42. 17.086 17.257 ↑ 1.1 55,752 1

Bitmap Heap Scan on tb_ocorrencia o_1 (cost=20.91..26,399.85 rows=58,797 width=24) (actual time=6.624..17.257 rows=55,752 loops=1)

  • Recheck Cond: ((dt_inicio >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio <= '2020-05-31 23:59:59-03'::timestamp with time zone))
  • Rows Removed by Index Recheck: 85,149
  • Heap Blocks: lossy=2,006
43. 0.171 0.171 ↑ 2.9 20,160 1

Bitmap Index Scan on ind_tb_ocorrencia_dtinicio (cost=0.00..6.21 rows=58,996 width=0) (actual time=0.171..0.171 rows=20,160 loops=1)

  • Index Cond: ((dt_inicio >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio <= '2020-05-31 23:59:59-03'::timestamp with time zone))
44. 0.003 0.011 ↑ 1.0 1 1

Hash (cost=1.25..1.25 rows=1 width=4) (actual time=0.011..0.011 rows=1 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
45. 0.008 0.008 ↑ 1.0 1 1

Seq Scan on tb_modelo_ocorrencia mo_1 (cost=0.00..1.25 rows=1 width=4) (actual time=0.006..0.008 rows=1 loops=1)

  • Filter: ((tp_ocorrencia)::smallint = 2)
  • Rows Removed by Filter: 19
46. 12.054 30.135 ↑ 2.0 1 6,027

Append (cost=0.43..2.99 rows=2 width=8) (actual time=0.003..0.005 rows=1 loops=6,027)

47. 12.054 12.054 ↑ 1.0 1 6,027

Index Scan using pk00_tb_trecho_viagem on tb_trecho_viagem tv1_2 (cost=0.43..0.89 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=6,027)

  • Index Cond: ((id_trecho_viagem)::integer = (o_1.id_trecho_viagem)::integer)
48. 6.027 6.027 ↓ 0.0 0 6,027

Index Scan using pk00_tbtrechoviagemu20191111 on tb_trecho_viagem_clust_until_20191111 tv1_3 (cost=0.43..2.10 rows=1 width=8) (actual time=0.001..0.001 rows=0 loops=6,027)

  • Index Cond: ((id_trecho_viagem)::integer = (o_1.id_trecho_viagem)::integer)
49. 12.054 12.054 ↑ 1.0 1 6,027

Index Scan using pk00_tb_viagem on tb_viagem v1_1 (cost=0.43..0.46 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=6,027)

  • Index Cond: ((id_viagem)::integer = (tv1_2.id_viagem)::integer)
50. 1.540 3.561 ↓ 1.3 12,136 1

Hash (cost=329.97..329.97 rows=9,122 width=8) (actual time=3.560..3.561 rows=12,136 loops=1)

  • Buckets: 16,384 Batches: 1 Memory Usage: 603kB
51. 2.021 2.021 ↓ 1.3 12,136 1

Index Only Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd_2 (cost=0.43..329.97 rows=9,122 width=8) (actual time=0.028..2.021 rows=12,136 loops=1)

  • Index Cond: ((id_filial = 55) AND (dt_inicio_terminal >= '2020-05-01 00:00:00-03'::timestamp with time zone) AND (dt_inicio_terminal <= '2020-05-31 23:59:59-03'::timestamp with time zone))
  • Heap Fetches: 228
52. 1.619 1.619 ↑ 1.0 1 1,619

Index Only Scan using pk00_tb_veiculo on tb_veiculo ve_2 (cost=0.29..0.31 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=1,619)

  • Index Cond: (id_veiculo = (rd_2.id_veiculo)::integer)
  • Heap Fetches: 326
53. 24.272 24.272 ↑ 2.0 1 12,136

Index Scan using ix01f_tb_viagem on tb_viagem v (cost=0.43..2.54 rows=2 width=10) (actual time=0.002..0.002 rows=1 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
54. 17.925 89.625 ↑ 3.5 2 17,925

Append (cost=0.43..1.06 rows=7 width=61) (actual time=0.003..0.005 rows=2 loops=17,925)

55. 53.775 53.775 ↑ 1.5 2 17,925

Index Scan using ix01f_tb_trecho_viagem on tb_trecho_viagem tv (cost=0.43..0.48 rows=3 width=116) (actual time=0.002..0.003 rows=2 loops=17,925)

  • Index Cond: ((id_viagem)::integer = (v.id_viagem)::integer)
56. 17.925 17.925 ↓ 0.0 0 17,925

Index Scan using ix01f_tbtrechoviagemu20191111 on tb_trecho_viagem_clust_until_20191111 tv_1 (cost=0.43..0.54 rows=4 width=54) (actual time=0.001..0.001 rows=0 loops=17,925)

  • Index Cond: ((id_viagem)::integer = (v.id_viagem)::integer)
57.          

SubPlan (for GroupAggregate)

58. 72.816 9,720.936 ↑ 1.0 1 12,136

Aggregate (cost=324.10..324.11 rows=1 width=16) (actual time=0.801..0.801 rows=1 loops=12,136)

59. 48.544 9,648.120 ↑ 7.8 28 12,136

Append (cost=48.81..323.01 rows=218 width=16) (actual time=0.768..0.795 rows=28 loops=12,136)

60. 424.760 9,551.032 ↑ 3.8 28 12,136

Bitmap Heap Scan on tb_parada pa (cost=48.81..175.85 rows=105 width=16) (actual time=0.766..0.787 rows=28 loops=12,136)

  • Recheck Cond: ((id_rd)::integer = (rd.id_rd)::integer)
  • Heap Blocks: exact=328,203
61. 9,126.272 9,126.272 ↑ 3.8 28 12,136

Bitmap Index Scan on ind_tb_parada_idrd_gin (cost=0.00..48.79 rows=105 width=0) (actual time=0.752..0.752 rows=28 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
62. 0.000 48.544 ↓ 0.0 0 12,136

Bitmap Heap Scan on tb_parada_until_201810 pa_1 (cost=9.27..146.08 rows=113 width=16) (actual time=0.004..0.004 rows=0 loops=12,136)

  • Recheck Cond: ((id_rd)::integer = (rd.id_rd)::integer)
63. 48.544 48.544 ↓ 0.0 0 12,136

Bitmap Index Scan on ind_tb_tbparadau201810_idrd (cost=0.00..9.24 rows=113 width=0) (actual time=0.004..0.004 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
64. 12.136 145.632 ↓ 0.0 0 12,136

Limit (cost=15.67..15.67 rows=1 width=40) (actual time=0.012..0.012 rows=0 loops=12,136)

65. 24.272 133.496 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.011..0.011 rows=0 loops=12,136)

  • Sort Key: eq.dt_inicio
  • Sort Method: quicksort Memory: 25kB
66. 17.118 109.224 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.65 rows=3 width=40) (actual time=0.008..0.009 rows=0 loops=12,136)

67. 14.946 84.952 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.007..0.007 rows=0 loops=12,136)

68. 48.544 48.544 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq (cost=0.43..2.88 rows=3 width=12) (actual time=0.004..0.004 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
69. 21.462 21.462 ↑ 1.0 1 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1 (cost=0.43..3.94 rows=1 width=8) (actual time=0.005..0.006 rows=1 loops=3,577)

  • Index Cond: ((eq.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 1)
  • Rows Removed by Filter: 2
70. 7.154 7.154 ↑ 1.0 1 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1 (cost=0.29..0.31 rows=1 width=28) (actual time=0.002..0.002 rows=1 loops=3,577)

  • Index Cond: ((ec1.id_coletor)::integer = (id_coletor)::integer)
71. 0.000 72.816 ↓ 0.0 0 12,136

Limit (cost=15.67..15.67 rows=1 width=40) (actual time=0.006..0.006 rows=0 loops=12,136)

72. 12.136 72.816 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.006..0.006 rows=0 loops=12,136)

  • Sort Key: eq_1.dt_inicio
  • Sort Method: quicksort Memory: 25kB
73. 8.559 60.680 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.65 rows=3 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

74. 13.541 48.544 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.003..0.004 rows=0 loops=12,136)

75. 24.272 24.272 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_1 (cost=0.43..2.88 rows=3 width=12) (actual time=0.002..0.002 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
76. 10.731 10.731 ↑ 1.0 1 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_1 (cost=0.43..3.94 rows=1 width=8) (actual time=0.002..0.003 rows=1 loops=3,577)

  • Index Cond: ((eq_1.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 2)
  • Rows Removed by Filter: 2
77. 3.577 3.577 ↑ 1.0 1 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1_1 (cost=0.29..0.31 rows=1 width=28) (actual time=0.001..0.001 rows=1 loops=3,577)

  • Index Cond: ((ec1_1.id_coletor)::integer = (id_coletor)::integer)
78. 12.136 72.816 ↓ 0.0 0 12,136

Limit (cost=15.67..15.67 rows=1 width=40) (actual time=0.006..0.006 rows=0 loops=12,136)

79. 0.000 60.680 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

  • Sort Key: eq_2.dt_inicio
  • Sort Method: quicksort Memory: 25kB
80. 8.559 60.680 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.65 rows=3 width=40) (actual time=0.004..0.005 rows=0 loops=12,136)

81. 29.254 48.544 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.003..0.004 rows=0 loops=12,136)

82. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_2 (cost=0.43..2.88 rows=3 width=12) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
83. 7.154 7.154 ↑ 1.0 1 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_2 (cost=0.43..3.94 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=3,577)

  • Index Cond: ((eq_2.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 3)
  • Rows Removed by Filter: 2
84. 3.577 3.577 ↑ 1.0 1 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1_2 (cost=0.29..0.31 rows=1 width=28) (actual time=0.001..0.001 rows=1 loops=3,577)

  • Index Cond: ((ec1_2.id_coletor)::integer = (id_coletor)::integer)
85. 0.000 60.680 ↓ 0.0 0 12,136

Limit (cost=15.67..15.67 rows=1 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

86. 12.136 60.680 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

  • Sort Key: eq_3.dt_inicio
  • Sort Method: quicksort Memory: 25kB
87. 8.559 48.544 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.65 rows=3 width=40) (actual time=0.004..0.004 rows=0 loops=12,136)

88. 17.118 36.408 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.003..0.003 rows=0 loops=12,136)

89. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_3 (cost=0.43..2.88 rows=3 width=12) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
90. 7.154 7.154 ↓ 0.0 0 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_3 (cost=0.43..3.94 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=3,577)

  • Index Cond: ((eq_3.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 4)
  • Rows Removed by Filter: 2
91. 3.577 3.577 ↓ 0.0 0 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1_3 (cost=0.29..0.31 rows=1 width=28) (actual time=0.001..0.001 rows=0 loops=3,577)

  • Index Cond: ((ec1_3.id_coletor)::integer = (id_coletor)::integer)
92. 0.000 60.680 ↓ 0.0 0 12,136

Limit (cost=15.67..15.68 rows=1 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

93. 12.136 60.680 ↓ 0.0 0 12,136

Sort (cost=15.67..15.68 rows=3 width=40) (actual time=0.005..0.005 rows=0 loops=12,136)

  • Sort Key: eq_4.dt_inicio
  • Sort Method: quicksort Memory: 25kB
94. 12.136 48.544 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=1.15..15.66 rows=3 width=40) (actual time=0.004..0.004 rows=0 loops=12,136)

95. 17.118 36.408 ↓ 0.0 0 12,136

Nested Loop Left Join (cost=0.86..14.74 rows=3 width=12) (actual time=0.003..0.003 rows=0 loops=12,136)

96. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_4 (cost=0.43..2.88 rows=3 width=12) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
97. 7.154 7.154 ↓ 0.0 0 3,577

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_4 (cost=0.43..3.94 rows=1 width=8) (actual time=0.002..0.002 rows=0 loops=3,577)

  • Index Cond: ((eq_4.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 5)
  • Rows Removed by Filter: 3
98. 0.000 0.000 ↓ 0.0 0 3,577

Index Scan using pk00_tb_coletor on tb_coletor c1_4 (cost=0.29..0.31 rows=1 width=28) (actual time=0.000..0.000 rows=0 loops=3,577)

  • Index Cond: ((ec1_4.id_coletor)::integer = (id_coletor)::integer)
99. 12.136 24.272 ↓ 0.0 0 12,136

Limit (cost=0.43..2.88 rows=1 width=1) (actual time=0.002..0.002 rows=0 loops=12,136)

100. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix03f_tb_equipe on tb_equipe eq_5 (cost=0.43..2.88 rows=1 width=1) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
  • Filter: (NOT vf_inicial)
  • Rows Removed by Filter: 0
101. 12.136 36.408 ↓ 0.0 0 12,136

Limit (cost=0.42..2.84 rows=1 width=5) (actual time=0.003..0.003 rows=0 loops=12,136)

102. 24.272 24.272 ↓ 0.0 0 12,136

Index Scan using ix00f_tb_abastecimento on tb_abastecimento (cost=0.42..2.84 rows=1 width=5) (actual time=0.002..0.002 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
103. 12.136 24.272 ↓ 0.0 0 12,136

Limit (cost=0.42..2.84 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=12,136)

104. 12.136 12.136 ↓ 0.0 0 12,136

Index Scan using ix00f_tb_abastecimento on tb_abastecimento tb_abastecimento_1 (cost=0.42..2.84 rows=1 width=4) (actual time=0.001..0.001 rows=0 loops=12,136)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
105. 0.069 0.069 ↑ 1.0 1 23

Index Scan using pk00_tb_geometria on tb_geometria g_4 (cost=0.43..2.85 rows=1 width=43) (actual time=0.003..0.003 rows=1 loops=23)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
106. 0.450 0.450 ↑ 1.0 1 150

Index Scan using pk00_tb_geometria on tb_geometria g_3 (cost=0.43..2.85 rows=1 width=43) (actual time=0.003..0.003 rows=1 loops=150)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
107. 2.763 2.763 ↑ 1.0 1 921

Index Scan using pk00_tb_geometria on tb_geometria g_2 (cost=0.43..2.85 rows=1 width=43) (actual time=0.003..0.003 rows=1 loops=921)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
108. 6.516 6.516 ↑ 1.0 1 2,172

Index Scan using pk00_tb_geometria on tb_geometria g_1 (cost=0.43..2.85 rows=1 width=43) (actual time=0.003..0.003 rows=1 loops=2,172)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
109. 13.803 13.803 ↑ 1.0 1 4,601

Index Scan using pk00_tb_geometria on tb_geometria g (cost=0.43..2.85 rows=1 width=43) (actual time=0.002..0.003 rows=1 loops=4,601)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
Planning time : 6.981 ms
Execution time : 15,536.584 ms