explain.depesz.com

PostgreSQL's explain analyze made readable

Result: MUAg

Settings
# exclusive inclusive rows x rows loops node
1. 13.281 18,071.910 ↑ 2.7 5,343 1

Sort (cost=5,907,254.47..5,907,290.05 rows=14,231 width=784) (actual time=18,071.410..18,071.910 rows=5,343 loops=1)

  • Sort Key: rd.dt_inicio_terminal
  • Sort Method: quicksort Memory: 1775kB
2. 9,793.389 18,058.629 ↑ 2.7 5,343 1

GroupAggregate (cost=80,532.80..5,906,272.76 rows=14,231 width=784) (actual time=534.623..18,058.629 rows=5,343 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. 81.572 532.619 ↓ 1.5 21,500 1

Sort (cost=80,532.80..80,568.38 rows=14,231 width=703) (actual time=526.577..532.619 rows=21,500 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: 13217kB
4. 4.835 451.047 ↓ 1.5 21,500 1

Nested Loop (cost=55,920.57..79,551.09 rows=14,231 width=703) (actual time=376.390..451.047 rows=21,500 loops=1)

5. 3.218 410.156 ↓ 1.3 9,014 1

Nested Loop (cost=55,920.13..73,843.23 rows=6,869 width=581) (actual time=376.367..410.156 rows=9,014 loops=1)

6. 1.778 390.909 ↓ 1.0 5,343 1

Hash Left Join (cost=55,919.70..59,829.09 rows=5,205 width=575) (actual time=376.351..390.909 rows=5,343 loops=1)

  • Hash Cond: ((rd.id_rd)::integer = (tb_refeicao.id_rd)::integer)
7. 1.352 220.481 ↓ 1.0 5,343 1

Hash Left Join (cost=28,153.56..32,049.29 rows=5,205 width=551) (actual time=207.690..220.481 rows=5,343 loops=1)

  • Hash Cond: ((rd.id_rd)::integer = (tb_sos.id_rd)::integer)
8. 1.659 15.450 ↓ 1.0 5,343 1

Hash Join (cost=372.82..4,254.88 rows=5,205 width=511) (actual time=3.996..15.450 rows=5,343 loops=1)

  • Hash Cond: ((rd.id_veiculo)::integer = (ve.id_veiculo)::integer)
9. 1.402 9.934 ↓ 1.0 5,343 1

Hash Join (cost=2.00..3,870.38 rows=5,205 width=504) (actual time=0.060..9.934 rows=5,343 loops=1)

  • Hash Cond: ((rd.id_modelo_coleta)::integer = (mc.id_modelo_coleta)::integer)
10. 8.517 8.517 ↓ 1.0 5,343 1

Index Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd (cost=0.43..3,852.84 rows=5,205 width=489) (actual time=0.037..8.517 rows=5,343 loops=1)

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

Hash (cost=1.25..1.25 rows=25 width=23) (actual time=0.015..0.015 rows=25 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
12. 0.007 0.007 ↑ 1.0 25 1

Seq Scan on tb_modelo_coleta mc (cost=0.00..1.25 rows=25 width=23) (actual time=0.004..0.007 rows=25 loops=1)

13. 2.018 3.857 ↓ 1.0 8,974 1

Hash (cost=258.70..258.70 rows=8,970 width=15) (actual time=3.857..3.857 rows=8,974 loops=1)

  • Buckets: 16384 Batches: 1 Memory Usage: 557kB
14. 1.839 1.839 ↓ 1.0 8,974 1

Seq Scan on tb_veiculo ve (cost=0.00..258.70 rows=8,970 width=15) (actual time=0.004..1.839 rows=8,974 loops=1)

15. 0.013 203.679 ↓ 2.0 48 1

Hash (cost=27,780.44..27,780.44 rows=24 width=44) (actual time=203.679..203.679 rows=48 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
16. 0.007 203.666 ↓ 2.0 48 1

Subquery Scan on tb_sos (cost=27,779.60..27,780.44 rows=24 width=44) (actual time=203.613..203.666 rows=48 loops=1)

17. 0.068 203.659 ↓ 2.0 48 1

GroupAggregate (cost=27,779.60..27,780.20 rows=24 width=44) (actual time=203.612..203.659 rows=48 loops=1)

  • Group Key: rd_1.id_rd
18. 0.057 203.591 ↓ 2.2 54 1

Sort (cost=27,779.60..27,779.66 rows=24 width=20) (actual time=203.588..203.591 rows=54 loops=1)

  • Sort Key: rd_1.id_rd
  • Sort Method: quicksort Memory: 29kB
19. 0.095 203.534 ↓ 2.2 54 1

Nested Loop (cost=2.01..27,779.05 rows=24 width=20) (actual time=4.722..203.534 rows=54 loops=1)

20. 16.657 203.277 ↓ 2.2 54 1

Nested Loop (cost=1.73..27,771.31 rows=24 width=24) (actual time=4.707..203.277 rows=54 loops=1)

  • Join Filter: ((o.id_modelo_ocorrencia)::integer = (mo.id_modelo_ocorrencia)::integer)
  • Rows Removed by Join Filter: 264855
21. 18.586 153.474 ↓ 543.4 33,146 1

Nested Loop (cost=1.73..27,763.00 rows=61 width=28) (actual time=1.238..153.474 rows=33,146 loops=1)

22. 8.604 70.388 ↓ 1.5 21,500 1

Nested Loop (cost=1.30..19,902.48 rows=14,232 width=12) (actual time=0.061..70.388 rows=21,500 loops=1)

23. 2.583 25.728 ↓ 1.3 9,014 1

Nested Loop (cost=0.86..14,194.62 rows=6,869 width=12) (actual time=0.047..25.728 rows=9,014 loops=1)

24. 1.773 1.773 ↓ 1.0 5,343 1

Index Only Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd_1 (cost=0.43..180.48 rows=5,205 width=8) (actual time=0.031..1.773 rows=5,343 loops=1)

  • Index Cond: ((id_filial = 55) AND (dt_inicio_terminal >= '2019-10-10 00:00:00-03'::timestamp with time zone) AND (dt_inicio_terminal <= '2019-10-31 23:59:59-03'::timestamp with time zone))
  • Heap Fetches: 138
25. 21.372 21.372 ↑ 1.0 2 5,343

Index Scan using ix01f_tb_viagem on tb_viagem v1 (cost=0.43..2.67 rows=2 width=8) (actual time=0.003..0.004 rows=2 loops=5,343)

  • Index Cond: ((id_rd)::integer = (rd_1.id_rd)::integer)
26. 36.056 36.056 ↑ 6.5 2 9,014

Index Scan using ix01f_tb_trecho_viagem on tb_trecho_viagem tv1 (cost=0.43..0.70 rows=13 width=8) (actual time=0.003..0.004 rows=2 loops=9,014)

  • Index Cond: ((id_viagem)::integer = (v1.id_viagem)::integer)
27. 64.500 64.500 ↓ 2.0 2 21,500

Index Scan using ix02f_tb_ocorrencia on tb_ocorrencia o (cost=0.43..0.54 rows=1 width=24) (actual time=0.002..0.003 rows=2 loops=21,500)

  • Index Cond: ((id_trecho_viagem)::integer = (tv1.id_trecho_viagem)::integer)
  • Filter: ((dt_inicio >= '2019-10-10 00:00:00-03'::timestamp with time zone) AND (dt_inicio <= '2019-10-31 23:59:59-03'::timestamp with time zone))
  • Rows Removed by Filter: 0
28. 33.138 33.146 ↑ 1.0 8 33,146

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

29. 0.008 0.008 ↑ 1.0 8 1

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

  • Filter: ((tp_ocorrencia)::smallint = 0)
  • Rows Removed by Filter: 12
30. 0.162 0.162 ↑ 1.0 1 54

Index Only Scan using pk00_tb_veiculo on tb_veiculo ve_1 (cost=0.29..0.32 rows=1 width=4) (actual time=0.003..0.003 rows=1 loops=54)

  • Index Cond: (id_veiculo = (rd_1.id_veiculo)::integer)
  • Heap Fetches: 28
31. 0.189 168.650 ↓ 362.3 1,087 1

Hash (cost=27,766.10..27,766.10 rows=3 width=28) (actual time=168.650..168.650 rows=1,087 loops=1)

  • Buckets: 2048 (originally 1024) Batches: 1 (originally 1) Memory Usage: 80kB
32. 0.119 168.461 ↓ 362.3 1,087 1

Subquery Scan on tb_refeicao (cost=27,766.00..27,766.10 rows=3 width=28) (actual time=167.830..168.461 rows=1,087 loops=1)

33. 0.457 168.342 ↓ 362.3 1,087 1

GroupAggregate (cost=27,766.00..27,766.07 rows=3 width=28) (actual time=167.829..168.342 rows=1,087 loops=1)

  • Group Key: rd_2.id_rd
34. 0.520 167.885 ↓ 382.0 1,146 1

Sort (cost=27,766.00..27,766.01 rows=3 width=20) (actual time=167.818..167.885 rows=1,146 loops=1)

  • Sort Key: rd_2.id_rd
  • Sort Method: quicksort Memory: 138kB
35. 1.015 167.365 ↓ 382.0 1,146 1

Nested Loop (cost=2.01..27,765.98 rows=3 width=20) (actual time=0.938..167.365 rows=1,146 loops=1)

36. 3.371 164.058 ↓ 382.0 1,146 1

Nested Loop (cost=1.73..27,765.01 rows=3 width=24) (actual time=0.923..164.058 rows=1,146 loops=1)

  • Join Filter: ((o_1.id_modelo_ocorrencia)::integer = (mo_1.id_modelo_ocorrencia)::integer)
  • Rows Removed by Join Filter: 32000
37. 0.009 0.009 ↑ 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.009 rows=1 loops=1)

  • Filter: ((tp_ocorrencia)::smallint = 2)
  • Rows Removed by Filter: 19
38. 24.219 160.678 ↓ 543.4 33,146 1

Nested Loop (cost=1.73..27,763.00 rows=61 width=28) (actual time=0.853..160.678 rows=33,146 loops=1)

39. 9.869 71.959 ↓ 1.5 21,500 1

Nested Loop (cost=1.30..19,902.48 rows=14,232 width=12) (actual time=0.056..71.959 rows=21,500 loops=1)

40. 2.880 26.034 ↓ 1.3 9,014 1

Nested Loop (cost=0.86..14,194.62 rows=6,869 width=12) (actual time=0.042..26.034 rows=9,014 loops=1)

41. 1.782 1.782 ↓ 1.0 5,343 1

Index Only Scan using ind_tb_rd_idfilial_dtini_idveiculo_idrd on tb_rd rd_2 (cost=0.43..180.48 rows=5,205 width=8) (actual time=0.030..1.782 rows=5,343 loops=1)

  • Index Cond: ((id_filial = 55) AND (dt_inicio_terminal >= '2019-10-10 00:00:00-03'::timestamp with time zone) AND (dt_inicio_terminal <= '2019-10-31 23:59:59-03'::timestamp with time zone))
  • Heap Fetches: 138
42. 21.372 21.372 ↑ 1.0 2 5,343

Index Scan using ix01f_tb_viagem on tb_viagem v1_1 (cost=0.43..2.67 rows=2 width=8) (actual time=0.003..0.004 rows=2 loops=5,343)

  • Index Cond: ((id_rd)::integer = (rd_2.id_rd)::integer)
43. 36.056 36.056 ↑ 6.5 2 9,014

Index Scan using ix01f_tb_trecho_viagem on tb_trecho_viagem tv1_1 (cost=0.43..0.70 rows=13 width=8) (actual time=0.003..0.004 rows=2 loops=9,014)

  • Index Cond: ((id_viagem)::integer = (v1_1.id_viagem)::integer)
44. 64.500 64.500 ↓ 2.0 2 21,500

Index Scan using ix02f_tb_ocorrencia on tb_ocorrencia o_1 (cost=0.43..0.54 rows=1 width=24) (actual time=0.002..0.003 rows=2 loops=21,500)

  • Index Cond: ((id_trecho_viagem)::integer = (tv1_1.id_trecho_viagem)::integer)
  • Filter: ((dt_inicio >= '2019-10-10 00:00:00-03'::timestamp with time zone) AND (dt_inicio <= '2019-10-31 23:59:59-03'::timestamp with time zone))
  • Rows Removed by Filter: 0
45. 2.292 2.292 ↑ 1.0 1 1,146

Index Only Scan using pk00_tb_veiculo on tb_veiculo ve_2 (cost=0.29..0.32 rows=1 width=4) (actual time=0.002..0.002 rows=1 loops=1,146)

  • Index Cond: (id_veiculo = (rd_2.id_veiculo)::integer)
  • Heap Fetches: 535
46. 16.029 16.029 ↑ 1.0 2 5,343

Index Scan using ix01f_tb_viagem on tb_viagem v (cost=0.43..2.67 rows=2 width=10) (actual time=0.002..0.003 rows=2 loops=5,343)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
47. 36.056 36.056 ↑ 6.5 2 9,014

Index Scan using ix01f_tb_trecho_viagem on tb_trecho_viagem tv (cost=0.43..0.70 rows=13 width=130) (actual time=0.003..0.004 rows=2 loops=9,014)

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

SubPlan (for GroupAggregate)

49. 64.116 7,351.968 ↑ 1.0 1 5,343

Aggregate (cost=298.29..298.30 rows=1 width=16) (actual time=1.375..1.376 rows=1 loops=5,343)

50. 21.372 7,287.852 ↑ 5.8 32 5,343

Append (cost=62.98..297.36 rows=186 width=16) (actual time=1.315..1.364 rows=32 loops=5,343)

51. 256.464 7,239.765 ↑ 2.3 32 5,343

Bitmap Heap Scan on tb_parada pa (cost=62.98..152.49 rows=74 width=16) (actual time=1.313..1.355 rows=32 loops=5,343)

  • Recheck Cond: ((id_rd)::integer = (rd.id_rd)::integer)
  • Heap Blocks: exact=157646
52. 6,983.301 6,983.301 ↑ 2.3 32 5,343

Bitmap Index Scan on ind_tb_parada_idrd_gin (cost=0.00..62.96 rows=74 width=0) (actual time=1.307..1.307 rows=32 loops=5,343)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
53. 5.343 26.715 ↓ 0.0 0 5,343

Bitmap Heap Scan on tb_parada_until_201810 pa_1 (cost=9.27..144.86 rows=112 width=16) (actual time=0.005..0.005 rows=0 loops=5,343)

  • Recheck Cond: ((id_rd)::integer = (rd.id_rd)::integer)
54. 21.372 21.372 ↓ 0.0 0 5,343

Bitmap Index Scan on ind_tb_tbparadau201810_idrd (cost=0.00..9.24 rows=112 width=0) (actual time=0.004..0.004 rows=0 loops=5,343)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
55. 32.058 122.889 ↓ 0.0 0 5,343

Limit (cost=17.30..17.30 rows=1 width=40) (actual time=0.021..0.023 rows=0 loops=5,343)

56. 16.029 90.831 ↓ 0.0 0 5,343

Sort (cost=17.30..17.30 rows=3 width=40) (actual time=0.017..0.017 rows=0 loops=5,343)

  • Sort Key: eq.dt_inicio
  • Sort Method: quicksort Memory: 25kB
57. 3.387 74.802 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=1.15..17.28 rows=3 width=40) (actual time=0.013..0.014 rows=0 loops=5,343)

58. 9.684 64.116 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=0.86..16.37 rows=3 width=12) (actual time=0.011..0.012 rows=0 loops=5,343)

59. 37.401 37.401 ↓ 0.0 0 5,343

Index Scan using ix03f_tb_equipe on tb_equipe eq (cost=0.43..2.88 rows=3 width=12) (actual time=0.006..0.007 rows=0 loops=5,343)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
60. 17.031 17.031 ↑ 1.0 1 2,433

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1 (cost=0.43..4.49 rows=1 width=8) (actual time=0.006..0.007 rows=1 loops=2,433)

  • Index Cond: ((eq.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 1)
  • Rows Removed by Filter: 2
61. 7.299 7.299 ↑ 1.0 1 2,433

Index Scan using pk00_tb_coletor on tb_coletor c1 (cost=0.29..0.31 rows=1 width=28) (actual time=0.003..0.003 rows=1 loops=2,433)

  • Index Cond: ((ec1.id_coletor)::integer = (id_coletor)::integer)
62. 5.343 48.087 ↓ 0.0 0 5,343

Limit (cost=17.30..17.30 rows=1 width=40) (actual time=0.009..0.009 rows=0 loops=5,343)

63. 5.343 42.744 ↓ 0.0 0 5,343

Sort (cost=17.30..17.30 rows=3 width=40) (actual time=0.008..0.008 rows=0 loops=5,343)

  • Sort Key: eq_1.dt_inicio
  • Sort Method: quicksort Memory: 25kB
64. 5.820 37.401 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=1.15..17.28 rows=3 width=40) (actual time=0.006..0.007 rows=0 loops=5,343)

65. 8.730 26.715 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=0.86..16.37 rows=3 width=12) (actual time=0.004..0.005 rows=0 loops=5,343)

66. 10.686 10.686 ↓ 0.0 0 5,343

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=5,343)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
67. 7.299 7.299 ↑ 1.0 1 2,433

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_1 (cost=0.43..4.49 rows=1 width=8) (actual time=0.003..0.003 rows=1 loops=2,433)

  • Index Cond: ((eq_1.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 2)
  • Rows Removed by Filter: 2
68. 4.866 4.866 ↑ 1.0 1 2,433

Index Scan using pk00_tb_coletor on tb_coletor c1_1 (cost=0.29..0.31 rows=1 width=28) (actual time=0.002..0.002 rows=1 loops=2,433)

  • Index Cond: ((ec1_1.id_coletor)::integer = (id_coletor)::integer)
69. 5.343 48.087 ↓ 0.0 0 5,343

Limit (cost=17.30..17.30 rows=1 width=40) (actual time=0.008..0.009 rows=0 loops=5,343)

70. 5.343 42.744 ↓ 0.0 0 5,343

Sort (cost=17.30..17.30 rows=3 width=40) (actual time=0.008..0.008 rows=0 loops=5,343)

  • Sort Key: eq_2.dt_inicio
  • Sort Method: quicksort Memory: 25kB
71. 5.820 37.401 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=1.15..17.28 rows=3 width=40) (actual time=0.006..0.007 rows=0 loops=5,343)

72. 8.730 26.715 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=0.86..16.37 rows=3 width=12) (actual time=0.004..0.005 rows=0 loops=5,343)

73. 10.686 10.686 ↓ 0.0 0 5,343

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

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
74. 7.299 7.299 ↑ 1.0 1 2,433

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_2 (cost=0.43..4.49 rows=1 width=8) (actual time=0.002..0.003 rows=1 loops=2,433)

  • Index Cond: ((eq_2.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 3)
  • Rows Removed by Filter: 2
75. 4.866 4.866 ↑ 1.0 1 2,433

Index Scan using pk00_tb_coletor on tb_coletor c1_2 (cost=0.29..0.31 rows=1 width=28) (actual time=0.002..0.002 rows=1 loops=2,433)

  • Index Cond: ((ec1_2.id_coletor)::integer = (id_coletor)::integer)
76. 5.343 42.744 ↓ 0.0 0 5,343

Limit (cost=17.30..17.30 rows=1 width=40) (actual time=0.008..0.008 rows=0 loops=5,343)

77. 5.343 37.401 ↓ 0.0 0 5,343

Sort (cost=17.30..17.30 rows=3 width=40) (actual time=0.007..0.007 rows=0 loops=5,343)

  • Sort Key: eq_3.dt_inicio
  • Sort Method: quicksort Memory: 25kB
78. 8.253 32.058 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=1.15..17.28 rows=3 width=40) (actual time=0.006..0.006 rows=0 loops=5,343)

79. 3.387 21.372 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=0.86..16.37 rows=3 width=12) (actual time=0.004..0.004 rows=0 loops=5,343)

80. 10.686 10.686 ↓ 0.0 0 5,343

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

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
81. 7.299 7.299 ↓ 0.0 0 2,433

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_3 (cost=0.43..4.49 rows=1 width=8) (actual time=0.003..0.003 rows=0 loops=2,433)

  • Index Cond: ((eq_3.id_equipe)::integer = (id_equipe)::integer)
  • Filter: (vl_ordem = 4)
  • Rows Removed by Filter: 2
82. 2.433 2.433 ↓ 0.0 0 2,433

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=2,433)

  • Index Cond: ((ec1_3.id_coletor)::integer = (id_coletor)::integer)
83. 5.343 48.087 ↓ 0.0 0 5,343

Limit (cost=17.30..17.30 rows=1 width=40) (actual time=0.009..0.009 rows=0 loops=5,343)

84. 10.686 42.744 ↓ 0.0 0 5,343

Sort (cost=17.30..17.31 rows=3 width=40) (actual time=0.008..0.008 rows=0 loops=5,343)

  • Sort Key: eq_4.dt_inicio
  • Sort Method: quicksort Memory: 25kB
85. 5.343 32.058 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=1.15..17.29 rows=3 width=40) (actual time=0.006..0.006 rows=0 loops=5,343)

86. 8.730 26.715 ↓ 0.0 0 5,343

Nested Loop Left Join (cost=0.86..16.37 rows=3 width=12) (actual time=0.005..0.005 rows=0 loops=5,343)

87. 10.686 10.686 ↓ 0.0 0 5,343

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

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
88. 7.299 7.299 ↓ 0.0 0 2,433

Index Scan using pk00_tb_equipe_coletor on tb_equipe_coletor ec1_4 (cost=0.43..4.49 rows=1 width=8) (actual time=0.003..0.003 rows=0 loops=2,433)

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

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=2,433)

  • Index Cond: ((ec1_4.id_coletor)::integer = (id_coletor)::integer)
90. 5.343 16.029 ↓ 0.0 0 5,343

Limit (cost=0.43..2.88 rows=1 width=1) (actual time=0.003..0.003 rows=0 loops=5,343)

91. 10.686 10.686 ↓ 0.0 0 5,343

Index Scan using ix03f_tb_equipe on tb_equipe eq_5 (cost=0.43..2.88 rows=1 width=1) (actual time=0.002..0.002 rows=0 loops=5,343)

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
  • Filter: (NOT vf_inicial)
  • Rows Removed by Filter: 0
92. 5.343 21.372 ↓ 0.0 0 5,343

Limit (cost=0.42..2.84 rows=1 width=5) (actual time=0.004..0.004 rows=0 loops=5,343)

93. 16.029 16.029 ↓ 0.0 0 5,343

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

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
94. 5.343 16.029 ↓ 0.0 0 5,343

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

95. 10.686 10.686 ↓ 0.0 0 5,343

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

  • Index Cond: ((id_rd)::integer = (rd.id_rd)::integer)
96. 0.065 0.065 ↑ 1.0 1 13

Index Scan using pk00_tb_geometria on tb_geometria g_4 (cost=0.43..2.85 rows=1 width=44) (actual time=0.005..0.005 rows=1 loops=13)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
97. 0.288 0.288 ↑ 1.0 1 72

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

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
98. 1.448 1.448 ↑ 1.0 1 362

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

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
99. 5.640 5.640 ↑ 1.0 1 1,410

Index Scan using pk00_tb_geometria on tb_geometria g_1 (cost=0.43..2.85 rows=1 width=44) (actual time=0.003..0.004 rows=1 loops=1,410)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
100. 9.888 9.888 ↑ 1.0 1 3,296

Index Scan using pk00_tb_geometria on tb_geometria g (cost=0.43..2.85 rows=1 width=44) (actual time=0.003..0.003 rows=1 loops=3,296)

  • Index Cond: ((id_geometria)::integer = (tv.id_local_clt)::integer)
Planning time : 7.523 ms
Execution time : 18,077.051 ms