explain.depesz.com

PostgreSQL's explain analyze made readable

Result: WhnI : 2

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

Subquery Scan on results (cost=11,273,449.86..11,273,454.05 rows=335 width=560) (actual rows= loops=)

2.          

CTE arhiv_tmp

3. 0.000 0.000 ↓ 0.0

Unique (cost=106,954.59..107,319.82 rows=5,905 width=36) (actual rows= loops=)

4. 0.000 0.000 ↓ 0.0

Sort (cost=106,954.59..107,045.90 rows=36,523 width=36) (actual rows= loops=)

  • Sort Key: arh.pr_id, arh."DateValue
5. 0.000 0.000 ↓ 0.0

Hash Join (cost=100,155.07..103,185.79 rows=36,523 width=36) (actual rows= loops=)

  • Hash Cond: (arh.pr_id = p.prp_id)
6. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=99,910.45..102,418.67 rows=59,046 width=36) (actual rows= loops=)

  • Merge Cond: (arh.pr_id = arangcontract3.prp_id)
7. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=99,751.48..101,472.84 rows=59,046 width=32) (actual rows= loops=)

  • Merge Cond: (arh.pr_id = aranguser3.prp_id)
8. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=99,592.52..100,527.00 rows=59,046 width=28) (actual rows= loops=)

  • Merge Cond: (arh.pr_id = arangmetrol3.prp_id)
9. 0.000 0.000 ↓ 0.0

Sort (cost=99,433.56..99,581.17 rows=59,046 width=24) (actual rows= loops=)

  • Sort Key: arh.pr_id
10. 0.000 0.000 ↓ 0.0

Seq Scan on "Arhiv_cnt" arh (cost=0.00..93,543.29 rows=59,046 width=24) (actual rows= loops=)

  • Filter: (("DateValue" >= '2019-06-23 00:00:00'::timestamp without time zone) AND ("DateValue" <= '2019-07-01 00:00:00'::timestamp without time zone) AND (typ_arh = 2))
11. 0.000 0.000 ↓ 0.0

Sort (cost=158.96..164.31 rows=2,140 width=8) (actual rows= loops=)

  • Sort Key: arangmetrol3.prp_id
12. 0.000 0.000 ↓ 0.0

Hash Left Join (cost=1.05..40.58 rows=2,140 width=8) (actual rows= loops=)

  • Hash Cond: (arangmetrol3.range_id = arang033.range_id)
13. 0.000 0.000 ↓ 0.0

Seq Scan on "RangesToParam" arangmetrol3 (cost=0.00..31.40 rows=2,140 width=8) (actual rows= loops=)

14. 0.000 0.000 ↓ 0.0

Hash (cost=1.04..1.04 rows=1 width=4) (actual rows= loops=)

15. 0.000 0.000 ↓ 0.0

Seq Scan on "AnalyticRanges" arang033 (cost=0.00..1.04 rows=1 width=4) (actual rows= loops=)

  • Filter: (range_typ = 2)
16. 0.000 0.000 ↓ 0.0

Sort (cost=158.96..164.31 rows=2,140 width=8) (actual rows= loops=)

  • Sort Key: aranguser3.prp_id
17. 0.000 0.000 ↓ 0.0

Hash Left Join (cost=1.05..40.58 rows=2,140 width=8) (actual rows= loops=)

  • Hash Cond: (aranguser3.range_id = arang023.range_id)
18. 0.000 0.000 ↓ 0.0

Seq Scan on "RangesToParam" aranguser3 (cost=0.00..31.40 rows=2,140 width=8) (actual rows= loops=)

19. 0.000 0.000 ↓ 0.0

Hash (cost=1.04..1.04 rows=1 width=4) (actual rows= loops=)

20. 0.000 0.000 ↓ 0.0

Seq Scan on "AnalyticRanges" arang023 (cost=0.00..1.04 rows=1 width=4) (actual rows= loops=)

  • Filter: (range_typ = 1)
21. 0.000 0.000 ↓ 0.0

Sort (cost=158.96..164.31 rows=2,140 width=8) (actual rows= loops=)

  • Sort Key: arangcontract3.prp_id
22. 0.000 0.000 ↓ 0.0

Hash Left Join (cost=1.05..40.58 rows=2,140 width=8) (actual rows= loops=)

  • Hash Cond: (arangcontract3.range_id = arang013.range_id)
23. 0.000 0.000 ↓ 0.0

Seq Scan on "RangesToParam" arangcontract3 (cost=0.00..31.40 rows=2,140 width=8) (actual rows= loops=)

24. 0.000 0.000 ↓ 0.0

Hash (cost=1.04..1.04 rows=1 width=4) (actual rows= loops=)

25. 0.000 0.000 ↓ 0.0

Seq Scan on "AnalyticRanges" arang013 (cost=0.00..1.04 rows=1 width=4) (actual rows= loops=)

  • Filter: (range_typ = 0)
26. 0.000 0.000 ↓ 0.0

Hash (cost=221.70..221.70 rows=1,834 width=4) (actual rows= loops=)

27. 0.000 0.000 ↓ 0.0

HashAggregate (cost=203.36..221.70 rows=1,834 width=4) (actual rows= loops=)

28. 0.000 0.000 ↓ 0.0

Hash Semi Join (cost=12.36..198.78 rows=1,834 width=4) (actual rows= loops=)

  • Hash Cond: (p.plc_id = "Places_cnt".plc_id)
29. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" p (cost=0.00..161.08 rows=1,878 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = ANY ('{0,2,995,44,999,377,1003,1,955,308,959,310,963}'::integer[]))
30. 0.000 0.000 ↓ 0.0

Hash (cost=8.18..8.18 rows=335 width=4) (actual rows= loops=)

31. 0.000 0.000 ↓ 0.0

Seq Scan on "Places_cnt" (cost=0.00..8.18 rows=335 width=4) (actual rows= loops=)

  • Filter: ((place_id = 338) OR (plc_id = 338))
32. 0.000 0.000 ↓ 0.0

Sort (cost=11,166,130.04..11,166,130.88 rows=335 width=393) (actual rows= loops=)

  • Sort Key: (max(((pt."Name" || ' '::text) || p."Name")))
33. 0.000 0.000 ↓ 0.0

HashAggregate (cost=11,166,112.64..11,166,115.99 rows=335 width=393) (actual rows= loops=)

34. 0.000 0.000 ↓ 0.0

Hash Left Join (cost=239,884.44..8,757,785.76 rows=12,844,410 width=393) (actual rows= loops=)

  • Hash Cond: (prp24.prp_id = a24.pr_id)
35. 0.000 0.000 ↓ 0.0

Hash Left Join (cost=239,692.52..946,308.46 rows=10,364,710 width=373) (actual rows= loops=)

  • Hash Cond: (prp21.prp_id = pr21.prp_id)
36. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=239,433.55..751,732.93 rows=10,364,710 width=370) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp22.plc_id)
37. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=239,197.54..728,405.75 rows=8,363,733 width=362) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp23.plc_id)
38. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=238,961.54..709,536.47 rows=6,749,058 width=338) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp24.plc_id)
39. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=238,865.92..691,101.03 rows=6,749,058 width=334) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp18.plc_id)
40. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=238,612.16..607,616.55 rows=5,446,107 width=326) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp19.plc_id)
41. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=238,358.39..540,200.32 rows=4,394,699 width=302) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp20.plc_id)
42. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=238,104.63..485,750.26 rows=3,546,273 width=282) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp21.plc_id)
43. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=238,009.01..476,018.03 rows=3,546,273 width=278) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp16.plc_id)
44. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=237,746.82..416,967.78 rows=2,861,641 width=254) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp15.plc_id)
45. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=237,484.56..369,166.48 rows=2,309,182 width=230) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp17.plc_id)
46. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=237,237.26..339,351.61 rows=2,309,182 width=223) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp12.plc_id)
47. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=237,001.26..333,971.06 rows=1,863,379 width=199) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp14.plc_id)
48. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=236,738.99..302,753.40 rows=1,503,641 width=191) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp13.plc_id)
49. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=236,482.49..276,771.56 rows=1,503,641 width=184) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp10.plc_id)
50. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=236,246.48..273,185.64 rows=1,213,353 width=176) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp11.plc_id)
51. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=236,010.48..270,246.44 rows=979,107 width=152) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp9.plc_id)
52. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=235,871.97..267,447.32 rows=979,107 width=145) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp6.plc_id)
53. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=235,618.21..255,119.01 rows=790,084 width=137) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp7.plc_id)
54. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=235,364.44..245,121.77 rows=637,553 width=113) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp8.plc_id)
55. 0.000 0.000 ↓ 0.0

Sort (cost=235,123.59..236,717.47 rows=637,553 width=89) (actual rows= loops=)

  • Sort Key: p.plc_id
56. 0.000 0.000 ↓ 0.0

Hash Left Join (cost=41,122.13..75,586.51 rows=637,553 width=89) (actual rows= loops=)

  • Hash Cond: (pr5.dev_id = d5.dev_id)
57. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=41,067.81..65,968.89 rows=637,553 width=86) (actual rows= loops=)

  • Hash Cond: (a2.pr_id = prp2.prp_id)
58. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a2 (cost=0.00..118.10 rows=5,905 width=12) (actual rows= loops=)

59. 0.000 0.000 ↓ 0.0

Hash (cost=27,602.94..27,602.94 rows=514,469 width=82) (actual rows= loops=)

60. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=1,082.15..27,602.94 rows=514,469 width=82) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp4.plc_id)
61. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=819.96..18,812.19 rows=415,147 width=58) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp3.plc_id)
62. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=557.69..11,653.29 rows=335,000 width=34) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp5.plc_id)
63. 0.000 0.000 ↓ 0.0

Nested Loop (cost=355.95..7,162.09 rows=335,000 width=30) (actual rows= loops=)

64. 0.000 0.000 ↓ 0.0

Nested Loop Left Join (cost=355.70..461.84 rows=335 width=30) (actual rows= loops=)

65. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=355.70..362.31 rows=335 width=27) (actual rows= loops=)

  • Merge Cond: (p.plc_id = prp2.plc_id)
66. 0.000 0.000 ↓ 0.0

Sort (cost=246.03..246.87 rows=335 width=23) (actual rows= loops=)

  • Sort Key: p.plc_id
67. 0.000 0.000 ↓ 0.0

Hash Join (cost=127.99..231.99 rows=335 width=23) (actual rows= loops=)

  • Hash Cond: (p.typ_id = pt.typ_id)
68. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=126.54..225.93 rows=335 width=16) (actual rows= loops=)

  • Hash Cond: (prp1.plc_id = p.plc_id)
69. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=99.76..194.63 rows=336 width=8) (actual rows= loops=)

  • Hash Cond: (pr1.prp_id = prp1.prp_id)
70. 0.000 0.000 ↓ 0.0

Seq Scan on "PointRead" pr1 (cost=0.00..73.64 rows=4,764 width=8) (actual rows= loops=)

71. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=336 width=8) (actual rows= loops=)

72. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp1 (cost=0.00..95.56 rows=336 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 2)
73. 0.000 0.000 ↓ 0.0

Hash (cost=22.59..22.59 rows=335 width=12) (actual rows= loops=)

74. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=11.50..22.59 rows=335 width=12) (actual rows= loops=)

  • Hash Cond: (pchild.place_id = p.plc_id)
75. 0.000 0.000 ↓ 0.0

Seq Scan on "Places_cnt" pchild (cost=0.00..6.45 rows=345 width=4) (actual rows= loops=)

76. 0.000 0.000 ↓ 0.0

Hash (cost=7.31..7.31 rows=335 width=12) (actual rows= loops=)

77. 0.000 0.000 ↓ 0.0

Seq Scan on "Places_cnt" p (cost=0.00..7.31 rows=335 width=12) (actual rows= loops=)

  • Filter: (place_id = 338)
78. 0.000 0.000 ↓ 0.0

Hash (cost=1.20..1.20 rows=20 width=15) (actual rows= loops=)

79. 0.000 0.000 ↓ 0.0

Seq Scan on "PlaceTyp_cnt" pt (cost=0.00..1.20 rows=20 width=15) (actual rows= loops=)

80. 0.000 0.000 ↓ 0.0

Sort (cost=109.66..110.50 rows=336 width=8) (actual rows= loops=)

  • Sort Key: prp2.plc_id
81. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp2 (cost=0.00..95.56 rows=336 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 2)
82. 0.000 0.000 ↓ 0.0

Index Scan using "Device_cnt_pkey" on "Device_cnt" d1 (cost=0.00..0.28 rows=1 width=11) (actual rows= loops=)

  • Index Cond: (pr1.dev_id = dev_id)
83. 0.000 0.000 ↓ 0.0

Function Scan on "GetDateRange" dts (cost=0.25..10.25 rows=1,000 width=0) (actual rows= loops=)

84. 0.000 0.000 ↓ 0.0

Sort (cost=201.75..202.34 rows=237 width=8) (actual rows= loops=)

  • Sort Key: prp5.plc_id
85. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=98.53..192.40 rows=237 width=8) (actual rows= loops=)

  • Hash Cond: (pr5.prp_id = prp5.prp_id)
86. 0.000 0.000 ↓ 0.0

Seq Scan on "PointRead" pr5 (cost=0.00..73.64 rows=4,764 width=8) (actual rows= loops=)

87. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=237 width=8) (actual rows= loops=)

88. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp5 (cost=0.00..95.56 rows=237 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 44)
89. 0.000 0.000 ↓ 0.0

Sort (cost=262.26..263.30 rows=416 width=28) (actual rows= loops=)

  • Sort Key: prp3.plc_id
90. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=99.76..244.17 rows=416 width=28) (actual rows= loops=)

  • Hash Cond: (a3.pr_id = prp3.prp_id)
91. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a3 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

92. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=336 width=8) (actual rows= loops=)

93. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp3 (cost=0.00..95.56 rows=336 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 2)
94. 0.000 0.000 ↓ 0.0

Sort (cost=262.19..263.23 rows=415 width=28) (actual rows= loops=)

  • Sort Key: prp4.plc_id
95. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=99.75..244.14 rows=415 width=28) (actual rows= loops=)

  • Hash Cond: (a4.pr_id = prp4.prp_id)
96. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a4 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

97. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=335 width=8) (actual rows= loops=)

98. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp4 (cost=0.00..95.56 rows=335 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 995)
99. 0.000 0.000 ↓ 0.0

Hash (cost=30.81..30.81 rows=1,881 width=11) (actual rows= loops=)

100. 0.000 0.000 ↓ 0.0

Seq Scan on "Device_cnt" d5 (cost=0.00..30.81 rows=1,881 width=11) (actual rows= loops=)

101. 0.000 0.000 ↓ 0.0

Sort (cost=240.86..241.45 rows=237 width=28) (actual rows= loops=)

  • Sort Key: prp8.plc_id
102. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=98.53..231.51 rows=237 width=28) (actual rows= loops=)

  • Hash Cond: (a8.pr_id = prp8.prp_id)
103. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a8 (cost=0.00..132.86 rows=30 width=24) (actual rows= loops=)

  • Filter: (typ_arh = 2)
104. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=237 width=8) (actual rows= loops=)

105. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp8 (cost=0.00..95.56 rows=237 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 999)
106. 0.000 0.000 ↓ 0.0

Sort (cost=253.76..254.50 rows=294 width=28) (actual rows= loops=)

  • Sort Key: prp7.plc_id
107. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=98.53..241.71 rows=294 width=28) (actual rows= loops=)

  • Hash Cond: (a7.pr_id = prp7.prp_id)
108. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a7 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

109. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=237 width=8) (actual rows= loops=)

110. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp7 (cost=0.00..95.56 rows=237 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 44)
111. 0.000 0.000 ↓ 0.0

Sort (cost=253.76..254.50 rows=294 width=12) (actual rows= loops=)

  • Sort Key: prp6.plc_id
112. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=98.53..241.71 rows=294 width=12) (actual rows= loops=)

  • Hash Cond: (a6.pr_id = prp6.prp_id)
113. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a6 (cost=0.00..118.10 rows=5,905 width=12) (actual rows= loops=)

114. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=237 width=8) (actual rows= loops=)

115. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp6 (cost=0.00..95.56 rows=237 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 44)
116. 0.000 0.000 ↓ 0.0

Sort (cost=138.51..138.52 rows=5 width=11) (actual rows= loops=)

  • Sort Key: prp9.plc_id
117. 0.000 0.000 ↓ 0.0

Nested Loop Left Join (cost=0.00..138.45 rows=5 width=11) (actual rows= loops=)

118. 0.000 0.000 ↓ 0.0

Nested Loop Left Join (cost=0.00..136.97 rows=5 width=8) (actual rows= loops=)

119. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp9 (cost=0.00..95.56 rows=5 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 377)
120. 0.000 0.000 ↓ 0.0

Index Scan using "PointIndex" on "PointRead" pr9 (cost=0.00..8.27 rows=1 width=8) (actual rows= loops=)

  • Index Cond: (prp9.prp_id = prp_id)
121. 0.000 0.000 ↓ 0.0

Index Scan using "Device_cnt_pkey" on "Device_cnt" d9 (cost=0.00..0.28 rows=1 width=11) (actual rows= loops=)

  • Index Cond: (pr9.dev_id = dev_id)
122. 0.000 0.000 ↓ 0.0

Sort (cost=236.01..236.02 rows=6 width=28) (actual rows= loops=)

  • Sort Key: prp11.plc_id
123. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=95.63..235.93 rows=6 width=28) (actual rows= loops=)

  • Hash Cond: (a11.pr_id = prp11.prp_id)
124. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a11 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

125. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=5 width=8) (actual rows= loops=)

126. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp11 (cost=0.00..95.56 rows=5 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 377)
127. 0.000 0.000 ↓ 0.0

Sort (cost=236.01..236.02 rows=6 width=12) (actual rows= loops=)

  • Sort Key: prp10.plc_id
128. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=95.63..235.93 rows=6 width=12) (actual rows= loops=)

  • Hash Cond: (a10.pr_id = prp10.prp_id)
129. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a10 (cost=0.00..118.10 rows=5,905 width=12) (actual rows= loops=)

130. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=5 width=8) (actual rows= loops=)

131. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp10 (cost=0.00..95.56 rows=5 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 377)
132. 0.000 0.000 ↓ 0.0

Sort (cost=256.50..257.34 rows=336 width=11) (actual rows= loops=)

  • Sort Key: prp13.plc_id
133. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=198.83..242.40 rows=336 width=11) (actual rows= loops=)

  • Hash Cond: (d13.dev_id = pr13.dev_id)
134. 0.000 0.000 ↓ 0.0

Seq Scan on "Device_cnt" d13 (cost=0.00..30.81 rows=1,881 width=11) (actual rows= loops=)

135. 0.000 0.000 ↓ 0.0

Hash (cost=194.63..194.63 rows=336 width=8) (actual rows= loops=)

136. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=99.76..194.63 rows=336 width=8) (actual rows= loops=)

  • Hash Cond: (pr13.prp_id = prp13.prp_id)
137. 0.000 0.000 ↓ 0.0

Seq Scan on "PointRead" pr13 (cost=0.00..73.64 rows=4,764 width=8) (actual rows= loops=)

138. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=336 width=8) (actual rows= loops=)

139. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp13 (cost=0.00..95.56 rows=336 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 1)
140. 0.000 0.000 ↓ 0.0

Sort (cost=262.26..263.30 rows=416 width=12) (actual rows= loops=)

  • Sort Key: prp14.plc_id
141. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=99.76..244.17 rows=416 width=12) (actual rows= loops=)

  • Hash Cond: (a14.pr_id = prp14.prp_id)
142. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a14 (cost=0.00..118.10 rows=5,905 width=12) (actual rows= loops=)

143. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=336 width=8) (actual rows= loops=)

144. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp14 (cost=0.00..95.56 rows=336 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 1)
145. 0.000 0.000 ↓ 0.0

Sort (cost=236.01..236.02 rows=6 width=28) (actual rows= loops=)

  • Sort Key: prp12.plc_id
146. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=95.63..235.93 rows=6 width=28) (actual rows= loops=)

  • Hash Cond: (a12.pr_id = prp12.prp_id)
147. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a12 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

148. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=5 width=8) (actual rows= loops=)

149. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp12 (cost=0.00..95.56 rows=5 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 1003)
150. 0.000 0.000 ↓ 0.0

Sort (cost=247.30..247.89 rows=237 width=11) (actual rows= loops=)

  • Sort Key: prp17.plc_id
151. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=195.36..237.95 rows=237 width=11) (actual rows= loops=)

  • Hash Cond: (d17.dev_id = pr17.dev_id)
152. 0.000 0.000 ↓ 0.0

Seq Scan on "Device_cnt" d17 (cost=0.00..30.81 rows=1,881 width=11) (actual rows= loops=)

153. 0.000 0.000 ↓ 0.0

Hash (cost=192.40..192.40 rows=237 width=8) (actual rows= loops=)

154. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=98.53..192.40 rows=237 width=8) (actual rows= loops=)

  • Hash Cond: (pr17.prp_id = prp17.prp_id)
155. 0.000 0.000 ↓ 0.0

Seq Scan on "PointRead" pr17 (cost=0.00..73.64 rows=4,764 width=8) (actual rows= loops=)

156. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=237 width=8) (actual rows= loops=)

157. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp17 (cost=0.00..95.56 rows=237 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 308)
158. 0.000 0.000 ↓ 0.0

Sort (cost=262.26..263.30 rows=416 width=28) (actual rows= loops=)

  • Sort Key: prp15.plc_id
159. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=99.76..244.17 rows=416 width=28) (actual rows= loops=)

  • Hash Cond: (a15.pr_id = prp15.prp_id)
160. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a15 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

161. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=336 width=8) (actual rows= loops=)

162. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp15 (cost=0.00..95.56 rows=336 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 1)
163. 0.000 0.000 ↓ 0.0

Sort (cost=262.19..263.23 rows=415 width=28) (actual rows= loops=)

  • Sort Key: prp16.plc_id
164. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=99.75..244.14 rows=415 width=28) (actual rows= loops=)

  • Hash Cond: (a16.pr_id = prp16.prp_id)
165. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a16 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

166. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=335 width=8) (actual rows= loops=)

167. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp16 (cost=0.00..95.56 rows=335 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 955)
168. 0.000 0.000 ↓ 0.0

Sort (cost=95.62..95.63 rows=5 width=8) (actual rows= loops=)

  • Sort Key: prp21.plc_id
169. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp21 (cost=0.00..95.56 rows=5 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 310)
170. 0.000 0.000 ↓ 0.0

Sort (cost=253.76..254.50 rows=294 width=24) (actual rows= loops=)

  • Sort Key: prp20.plc_id
171. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=98.53..241.71 rows=294 width=24) (actual rows= loops=)

  • Hash Cond: (a20.pr_id = prp20.prp_id)
172. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a20 (cost=0.00..118.10 rows=5,905 width=20) (actual rows= loops=)

173. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=237 width=8) (actual rows= loops=)

174. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp20 (cost=0.00..95.56 rows=237 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 959)
175. 0.000 0.000 ↓ 0.0

Sort (cost=253.76..254.50 rows=294 width=28) (actual rows= loops=)

  • Sort Key: prp19.plc_id
176. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=98.53..241.71 rows=294 width=28) (actual rows= loops=)

  • Hash Cond: (a19.pr_id = prp19.prp_id)
177. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a19 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

178. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=237 width=8) (actual rows= loops=)

179. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp19 (cost=0.00..95.56 rows=237 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 308)
180. 0.000 0.000 ↓ 0.0

Sort (cost=253.76..254.50 rows=294 width=12) (actual rows= loops=)

  • Sort Key: prp18.plc_id
181. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=98.53..241.71 rows=294 width=12) (actual rows= loops=)

  • Hash Cond: (a18.pr_id = prp18.prp_id)
182. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a18 (cost=0.00..118.10 rows=5,905 width=12) (actual rows= loops=)

183. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=237 width=8) (actual rows= loops=)

184. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp18 (cost=0.00..95.56 rows=237 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 308)
185. 0.000 0.000 ↓ 0.0

Sort (cost=95.62..95.63 rows=5 width=8) (actual rows= loops=)

  • Sort Key: prp24.plc_id
186. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp24 (cost=0.00..95.56 rows=5 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 963)
187. 0.000 0.000 ↓ 0.0

Sort (cost=236.01..236.02 rows=6 width=28) (actual rows= loops=)

  • Sort Key: prp23.plc_id
188. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=95.63..235.93 rows=6 width=28) (actual rows= loops=)

  • Hash Cond: (a23.pr_id = prp23.prp_id)
189. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a23 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)

190. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=5 width=8) (actual rows= loops=)

191. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp23 (cost=0.00..95.56 rows=5 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 310)
192. 0.000 0.000 ↓ 0.0

Sort (cost=236.01..236.02 rows=6 width=12) (actual rows= loops=)

  • Sort Key: prp22.plc_id
193. 0.000 0.000 ↓ 0.0

Hash Right Join (cost=95.63..235.93 rows=6 width=12) (actual rows= loops=)

  • Hash Cond: (a22.pr_id = prp22.prp_id)
194. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a22 (cost=0.00..118.10 rows=5,905 width=12) (actual rows= loops=)

195. 0.000 0.000 ↓ 0.0

Hash (cost=95.56..95.56 rows=5 width=8) (actual rows= loops=)

196. 0.000 0.000 ↓ 0.0

Seq Scan on "ParamResPlc_cnt" prp22 (cost=0.00..95.56 rows=5 width=8) (actual rows= loops=)

  • Filter: ("ParamRes_id" = 310)
197. 0.000 0.000 ↓ 0.0

Hash (cost=199.42..199.42 rows=4,764 width=11) (actual rows= loops=)

198. 0.000 0.000 ↓ 0.0

Hash Left Join (cost=54.32..199.42 rows=4,764 width=11) (actual rows= loops=)

  • Hash Cond: (pr21.dev_id = d21.dev_id)
199. 0.000 0.000 ↓ 0.0

Seq Scan on "PointRead" pr21 (cost=0.00..73.64 rows=4,764 width=8) (actual rows= loops=)

200. 0.000 0.000 ↓ 0.0

Hash (cost=30.81..30.81 rows=1,881 width=11) (actual rows= loops=)

201. 0.000 0.000 ↓ 0.0

Seq Scan on "Device_cnt" d21 (cost=0.00..30.81 rows=1,881 width=11) (actual rows= loops=)

202. 0.000 0.000 ↓ 0.0

Hash (cost=118.10..118.10 rows=5,905 width=24) (actual rows= loops=)

203. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a24 (cost=0.00..118.10 rows=5,905 width=24) (actual rows= loops=)