explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ySmw : 2

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

Subquery Scan on results (cost=340,202.87..340,207.06 rows=335 width=560) (actual rows= loops=)

2.          

CTE arhiv_tmp

3. 0.000 0.000 ↓ 0.0

Unique (cost=103,917.50..104,205.23 rows=4,478 width=36) (actual rows= loops=)

4. 0.000 0.000 ↓ 0.0

Sort (cost=103,917.50..103,989.43 rows=28,773 width=36) (actual rows= loops=)

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

Hash Join (cost=98,644.27..100,999.01 rows=28,773 width=36) (actual rows= loops=)

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

Merge Left Join (cost=98,399.64..100,358.18 rows=44,775 width=36) (actual rows= loops=)

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

Merge Left Join (cost=98,240.68..99,583.68 rows=44,775 width=32) (actual rows= loops=)

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

Merge Left Join (cost=98,081.72..98,809.19 rows=44,775 width=28) (actual rows= loops=)

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

Sort (cost=97,922.75..98,034.69 rows=44,775 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=44,775 width=24) (actual rows= loops=)

  • Filter: (("DateValue" >= '2019-06-24 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=235,997.64..235,998.48 rows=335 width=414) (actual rows= loops=)

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

HashAggregate (cost=235,980.24..235,983.59 rows=335 width=414) (actual rows= loops=)

34. 0.000 0.000 ↓ 0.0

Hash Left Join (cost=104,139.37..173,167.74 rows=335,000 width=414) (actual rows= loops=)

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

Hash Left Join (cost=104,038.34..171,376.24 rows=335,000 width=394) (actual rows= loops=)

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

Merge Left Join (cost=103,779.37..164,836.72 rows=335,000 width=391) (actual rows= loops=)

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

Merge Left Join (cost=103,683.75..163,830.77 rows=335,000 width=387) (actual rows= loops=)

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

Merge Left Join (cost=103,487.22..162,723.92 rows=335,000 width=379) (actual rows= loops=)

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

Merge Left Join (cost=103,290.69..161,617.06 rows=335,000 width=355) (actual rows= loops=)

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

Merge Left Join (cost=103,195.07..160,611.11 rows=335,000 width=351) (actual rows= loops=)

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

Merge Left Join (cost=102,986.35..156,112.94 rows=335,000 width=343) (actual rows= loops=)

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

Merge Left Join (cost=102,777.63..151,614.77 rows=335,000 width=319) (actual rows= loops=)

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

Merge Left Join (cost=102,568.91..147,116.60 rows=335,000 width=299) (actual rows= loops=)

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

Merge Left Join (cost=102,356.52..141,172.80 rows=335,000 width=275) (actual rows= loops=)

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

Merge Left Join (cost=102,144.18..135,243.61 rows=335,000 width=251) (actual rows= loops=)

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

Merge Left Join (cost=101,896.88..130,706.86 rows=335,000 width=244) (actual rows= loops=)

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

Merge Left Join (cost=101,684.49..124,763.06 rows=335,000 width=236) (actual rows= loops=)

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

Merge Left Join (cost=101,427.99..118,775.14 rows=335,000 width=229) (actual rows= loops=)

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

Merge Left Join (cost=101,231.46..117,668.28 rows=335,000 width=205) (actual rows= loops=)

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

Merge Left Join (cost=101,034.93..116,561.43 rows=335,000 width=197) (actual rows= loops=)

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

Merge Left Join (cost=100,838.40..115,454.57 rows=335,000 width=173) (actual rows= loops=)

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

Merge Left Join (cost=100,699.89..114,405.74 rows=335,000 width=166) (actual rows= loops=)

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

Merge Left Join (cost=100,491.17..109,907.57 rows=335,000 width=158) (actual rows= loops=)

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

Merge Left Join (cost=100,282.45..105,409.40 rows=335,000 width=134) (actual rows= loops=)

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

Sort (cost=100,073.73..100,911.23 rows=335,000 width=110) (actual rows= loops=)

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

Hash Left Join (cost=1,137.78..30,397.11 rows=335,000 width=110) (actual rows= loops=)

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

Hash Left Join (cost=1,083.45..25,317.79 rows=335,000 width=107) (actual rows= loops=)

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

Merge Left Join (cost=982.42..23,526.29 rows=335,000 width=103) (actual rows= loops=)

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

Merge Left Join (cost=780.68..19,035.09 rows=335,000 width=99) (actual rows= loops=)

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

Merge Left Join (cost=568.28..13,091.28 rows=335,000 width=75) (actual rows= loops=)

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

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

62. 0.000 0.000 ↓ 0.0

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

63. 0.000 0.000 ↓ 0.0

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

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

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

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

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

  • Hash Cond: (p.typ_id = pt.typ_id)
66. 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)
67. 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)
68. 0.000 0.000 ↓ 0.0

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

69. 0.000 0.000 ↓ 0.0

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

70. 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)
71. 0.000 0.000 ↓ 0.0

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

72. 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)
73. 0.000 0.000 ↓ 0.0

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

74. 0.000 0.000 ↓ 0.0

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

75. 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)
76. 0.000 0.000 ↓ 0.0

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

77. 0.000 0.000 ↓ 0.0

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

78. 0.000 0.000 ↓ 0.0

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

  • Sort Key: prp2.plc_id
79. 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)
80. 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)
81. 0.000 0.000 ↓ 0.0

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

82. 0.000 0.000 ↓ 0.0

Sort (cost=212.34..213.17 rows=335 width=28) (actual rows= loops=)

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

Hash Left Join (cost=101.03..198.29 rows=335 width=28) (actual rows= loops=)

  • Hash Cond: (prp4.prp_id = a4.pr_id)
84. 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)
85. 0.000 0.000 ↓ 0.0

Hash (cost=100.76..100.76 rows=22 width=24) (actual rows= loops=)

86. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a4 (cost=0.00..100.76 rows=22 width=24) (actual rows= loops=)

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

Sort (cost=212.39..213.23 rows=336 width=28) (actual rows= loops=)

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

Hash Left Join (cost=101.03..198.29 rows=336 width=28) (actual rows= loops=)

  • Hash Cond: (prp3.prp_id = a3.pr_id)
89. 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)
90. 0.000 0.000 ↓ 0.0

Hash (cost=100.76..100.76 rows=22 width=24) (actual rows= loops=)

91. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a3 (cost=0.00..100.76 rows=22 width=24) (actual rows= loops=)

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

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

  • Sort Key: prp5.plc_id
93. 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)
94. 0.000 0.000 ↓ 0.0

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

95. 0.000 0.000 ↓ 0.0

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

96. 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)
97. 0.000 0.000 ↓ 0.0

Hash (cost=100.76..100.76 rows=22 width=12) (actual rows= loops=)

98. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a2 (cost=0.00..100.76 rows=22 width=12) (actual rows= loops=)

  • Filter: (typ_arh = 2)
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=208.72..209.31 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..199.37 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..100.76 rows=22 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=208.72..209.31 rows=237 width=28) (actual rows= loops=)

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

Hash Right Join (cost=98.53..199.37 rows=237 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..100.76 rows=22 width=24) (actual rows= loops=)

  • Filter: (typ_arh = 2)
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=208.72..209.31 rows=237 width=12) (actual rows= loops=)

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

Hash Right Join (cost=98.53..199.37 rows=237 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..100.76 rows=22 width=12) (actual rows= loops=)

  • Filter: (typ_arh = 2)
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=196.53..196.54 rows=5 width=28) (actual rows= loops=)

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

Hash Right Join (cost=95.63..196.47 rows=5 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..100.76 rows=22 width=24) (actual rows= loops=)

  • Filter: (typ_arh = 2)
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=196.53..196.54 rows=5 width=12) (actual rows= loops=)

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

Hash Right Join (cost=95.63..196.47 rows=5 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..100.76 rows=22 width=12) (actual rows= loops=)

  • Filter: (typ_arh = 2)
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=196.53..196.54 rows=5 width=28) (actual rows= loops=)

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

Hash Right Join (cost=95.63..196.47 rows=5 width=28) (actual rows= loops=)

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

CTE Scan on arhiv_tmp a12 (cost=0.00..100.76 rows=22 width=24) (actual rows= loops=)

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

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

136. 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)
137. 0.000 0.000 ↓ 0.0

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

  • Sort Key: prp13.plc_id
138. 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)
139. 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=)

140. 0.000 0.000 ↓ 0.0

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

141. 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)
142. 0.000 0.000 ↓ 0.0

Seq Scan on "PointRead" pr13 (cost=0.00..73.64 rows=4,764 width=8) (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" prp13 (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=212.39..213.23 rows=336 width=12) (actual rows= loops=)

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

Hash Left Join (cost=101.03..198.29 rows=336 width=12) (actual rows= loops=)

  • Hash Cond: (prp14.prp_id = a14.pr_id)
147. 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)
148. 0.000 0.000 ↓ 0.0

Hash (cost=100.76..100.76 rows=22 width=12) (actual rows= loops=)

149. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a14 (cost=0.00..100.76 rows=22 width=12) (actual rows= loops=)

  • Filter: (typ_arh = 2)
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=212.34..213.17 rows=335 width=28) (actual rows= loops=)

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

Hash Left Join (cost=101.03..198.29 rows=335 width=28) (actual rows= loops=)

  • Hash Cond: (prp16.prp_id = a16.pr_id)
160. 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)
161. 0.000 0.000 ↓ 0.0

Hash (cost=100.76..100.76 rows=22 width=24) (actual rows= loops=)

162. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a16 (cost=0.00..100.76 rows=22 width=24) (actual rows= loops=)

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

Sort (cost=212.39..213.23 rows=336 width=28) (actual rows= loops=)

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

Hash Left Join (cost=101.03..198.29 rows=336 width=28) (actual rows= loops=)

  • Hash Cond: (prp15.prp_id = a15.pr_id)
165. 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)
166. 0.000 0.000 ↓ 0.0

Hash (cost=100.76..100.76 rows=22 width=24) (actual rows= loops=)

167. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a15 (cost=0.00..100.76 rows=22 width=24) (actual rows= loops=)

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

Sort (cost=208.72..209.31 rows=237 width=24) (actual rows= loops=)

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

Hash Right Join (cost=98.53..199.37 rows=237 width=24) (actual rows= loops=)

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

CTE Scan on arhiv_tmp a20 (cost=0.00..100.76 rows=22 width=20) (actual rows= loops=)

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

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

172. 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)
173. 0.000 0.000 ↓ 0.0

Sort (cost=208.72..209.31 rows=237 width=28) (actual rows= loops=)

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

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

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

CTE Scan on arhiv_tmp a19 (cost=0.00..100.76 rows=22 width=24) (actual rows= loops=)

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

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

177. 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)
178. 0.000 0.000 ↓ 0.0

Sort (cost=208.72..209.31 rows=237 width=12) (actual rows= loops=)

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

Hash Right Join (cost=98.53..199.37 rows=237 width=12) (actual rows= loops=)

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

CTE Scan on arhiv_tmp a18 (cost=0.00..100.76 rows=22 width=12) (actual rows= loops=)

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

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

182. 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)
183. 0.000 0.000 ↓ 0.0

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

  • Sort Key: prp21.plc_id
184. 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)
185. 0.000 0.000 ↓ 0.0

Sort (cost=196.53..196.54 rows=5 width=28) (actual rows= loops=)

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

Hash Right Join (cost=95.63..196.47 rows=5 width=28) (actual rows= loops=)

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

CTE Scan on arhiv_tmp a23 (cost=0.00..100.76 rows=22 width=24) (actual rows= loops=)

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

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

189. 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)
190. 0.000 0.000 ↓ 0.0

Sort (cost=196.53..196.54 rows=5 width=12) (actual rows= loops=)

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

Hash Right Join (cost=95.63..196.47 rows=5 width=12) (actual rows= loops=)

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

CTE Scan on arhiv_tmp a22 (cost=0.00..100.76 rows=22 width=12) (actual rows= loops=)

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

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

194. 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)
195. 0.000 0.000 ↓ 0.0

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

  • Sort Key: prp24.plc_id
196. 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)
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=100.76..100.76 rows=22 width=24) (actual rows= loops=)

203. 0.000 0.000 ↓ 0.0

CTE Scan on arhiv_tmp a24 (cost=0.00..100.76 rows=22 width=24) (actual rows= loops=)

  • Filter: (typ_arh = 2)