-- Name: _hyper_4_1003_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1003_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1003_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1003_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1003_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1003_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1009_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1009_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1009_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1009_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1009_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1009_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1013_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1013_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1013_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1013_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1013_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1013_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1019_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1019_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1019_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1019_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1019_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1019_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1026_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1026_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1026_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1026_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1026_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1026_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1032_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1032_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1032_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1032_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1032_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1032_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1036_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1036_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1036_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1036_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1036_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1036_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1043_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1043_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1043_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1043_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1043_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1043_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1044_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1044_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1044_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1044_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1044_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1044_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1051_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1051_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1051_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1051_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1051_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1051_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1056_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1056_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1056_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1056_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1056_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1056_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1061_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1061_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1061_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1061_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1061_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1061_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1065_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1065_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1065_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1065_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1065_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1065_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1070_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1070_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1070_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1070_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1070_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1070_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1077_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1077_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1077_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1077_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1077_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1077_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1080_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1080_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1080_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1080_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1080_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1080_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1086_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1086_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1086_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1086_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1086_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1086_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1090_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1090_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1090_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1090_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1090_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1090_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1095_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1095_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1095_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1095_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1095_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1095_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1101_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1101_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1101_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1101_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1101_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1101_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1105_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1105_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1105_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1105_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1105_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1105_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1111_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1111_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1111_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1111_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1111_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1111_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1115_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1115_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1115_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1115_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1115_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1115_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1122_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1122_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1122_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1122_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1122_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1122_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1126_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1126_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1126_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1126_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1126_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1126_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1130_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1130_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1130_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1130_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1130_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1130_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1136_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1136_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1136_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1136_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1136_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1136_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1141_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1141_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1141_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1141_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1141_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1141_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1145_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1145_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1145_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1145_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1145_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1145_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1151_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1151_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1151_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1151_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1151_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1151_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1155_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1155_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1155_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1155_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1155_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1155_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1161_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1161_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1161_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1161_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1161_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1161_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1167_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1167_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1167_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1167_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1167_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1167_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1171_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1171_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1171_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1171_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1171_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1171_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1178_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1178_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1178_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1178_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1178_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1178_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1182_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1182_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1182_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1182_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1182_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1182_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1187_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1187_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1187_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1187_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1187_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1187_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1191_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1191_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1191_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1191_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1191_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1191_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1198_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1198_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1198_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1198_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1198_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1198_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1202_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1202_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1202_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1202_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1202_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1202_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1207_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1207_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1207_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1207_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1207_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1207_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1212_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1212_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1212_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1212_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1212_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1212_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1217_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1217_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1217_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1217_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1217_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1217_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_1223_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1223_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_1223_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_1223_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_1223_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_1223_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_767_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_767_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_767_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_767_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_767_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_767_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_774_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_774_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_774_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_774_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_774_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_774_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_776_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_776_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_776_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_776_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_776_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_776_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_781_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_781_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_781_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_781_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_781_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_781_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_786_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_786_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_786_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_786_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_786_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_786_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_791_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_791_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_791_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_791_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_791_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_791_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_797_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_797_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_797_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_797_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_797_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_797_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_803_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_803_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_803_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_803_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_803_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_803_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_805_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_805_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_805_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_805_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_805_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_805_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_811_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_811_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_811_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_811_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_811_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_811_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_818_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_818_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_818_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_818_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_818_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_818_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_822_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_822_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_822_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_822_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_822_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_822_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_827_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_827_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_827_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_827_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_827_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_827_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_832_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_832_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_832_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_832_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_832_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_832_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_837_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_837_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_837_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_837_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_837_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_837_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_841_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_841_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_841_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_841_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_841_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_841_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_847_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_847_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_847_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_847_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_847_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_847_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_852_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_852_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_852_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_852_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_852_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_852_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_858_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_858_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_858_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_858_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_858_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_858_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_860_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_860_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_860_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_860_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_860_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_860_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_866_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_866_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_866_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_866_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_866_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_866_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_873_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_873_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_873_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_873_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_873_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_873_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_880_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_880_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_880_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_880_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_880_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_880_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_882_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_882_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_882_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_882_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_882_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_882_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_889_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_889_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_889_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_889_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_889_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_889_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_893_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_893_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_893_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_893_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_893_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_893_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_897_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_897_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_897_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_897_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_897_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_897_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_903_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_903_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_903_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_903_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_903_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_903_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_911_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_911_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_911_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_911_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_911_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_911_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_913_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_913_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_913_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_913_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_913_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_913_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_919_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_919_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_919_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_919_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_919_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_919_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_925_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_925_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_925_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_925_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_925_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_925_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_929_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_929_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_929_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_929_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_929_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_929_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_932_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_932_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_932_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_932_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_932_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_932_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_939_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_939_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_939_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_939_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_939_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_939_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_943_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_943_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_943_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_943_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_943_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_943_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_949_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_949_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_949_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_949_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_949_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_949_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_953_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_953_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_953_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_953_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_953_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_953_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_958_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_958_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_958_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_958_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_958_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_958_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_963_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_963_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_963_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_963_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_963_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_963_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_970_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_970_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_970_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_970_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_970_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_970_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_972_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_972_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_972_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_972_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_972_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_972_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_977_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_977_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_977_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_977_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_977_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_977_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_984_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_984_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_984_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_984_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_984_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_984_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_988_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_988_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_988_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_988_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_988_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_988_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_992_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_992_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_992_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_992_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_992_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_992_chunk USING btree (itemid, clock);


--
-- Name: _hyper_4_999_chunk_history_str_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_999_chunk_history_str_clock_idx ON _timescaledb_internal._hyper_4_999_chunk USING btree (clock DESC);


--
-- Name: _hyper_4_999_chunk_idx_36816_history_str_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_4_999_chunk_idx_36816_history_str_1 ON _timescaledb_internal._hyper_4_999_chunk USING btree (itemid, clock);


--
-- Name: _hyper_5_1022_chunk_trends_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_5_1022_chunk_trends_clock_idx ON _timescaledb_internal._hyper_5_1022_chunk USING btree (clock DESC);


--
-- Name: _hyper_5_1174_chunk_trends_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_5_1174_chunk_trends_clock_idx ON _timescaledb_internal._hyper_5_1174_chunk USING btree (clock DESC);


--
-- Name: _hyper_5_566_chunk_trends_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_5_566_chunk_trends_clock_idx ON _timescaledb_internal._hyper_5_566_chunk USING btree (clock DESC);


--
-- Name: _hyper_5_718_chunk_trends_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_5_718_chunk_trends_clock_idx ON _timescaledb_internal._hyper_5_718_chunk USING btree (clock DESC);


--
-- Name: _hyper_5_870_chunk_trends_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_5_870_chunk_trends_clock_idx ON _timescaledb_internal._hyper_5_870_chunk USING btree (clock DESC);


--
-- Name: _hyper_6_1023_chunk_trends_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_6_1023_chunk_trends_uint_clock_idx ON _timescaledb_internal._hyper_6_1023_chunk USING btree (clock DESC);


--
-- Name: _hyper_6_1175_chunk_trends_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_6_1175_chunk_trends_uint_clock_idx ON _timescaledb_internal._hyper_6_1175_chunk USING btree (clock DESC);


--
-- Name: _hyper_6_567_chunk_trends_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_6_567_chunk_trends_uint_clock_idx ON _timescaledb_internal._hyper_6_567_chunk USING btree (clock DESC);


--
-- Name: _hyper_6_719_chunk_trends_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_6_719_chunk_trends_uint_clock_idx ON _timescaledb_internal._hyper_6_719_chunk USING btree (clock DESC);


--
-- Name: _hyper_6_871_chunk_trends_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_6_871_chunk_trends_uint_clock_idx ON _timescaledb_internal._hyper_6_871_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1004_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1004_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1004_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1004_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1004_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1004_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1007_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1007_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1007_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1007_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1007_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1007_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1014_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1014_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1014_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1014_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1014_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1014_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1018_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1018_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1018_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1018_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1018_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1018_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1024_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1024_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1024_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1024_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1024_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1024_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1030_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1030_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1030_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1030_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1030_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1030_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1035_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1035_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1035_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1035_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1035_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1035_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1039_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1039_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1039_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1039_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1039_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1039_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1045_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1045_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1045_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1045_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1045_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1045_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1050_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1050_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1050_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1050_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1050_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1050_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1055_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1055_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1055_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1055_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1055_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1055_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1060_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1060_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1060_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1060_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1060_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1060_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1066_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1066_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1066_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1066_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1066_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1066_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1071_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1071_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1071_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1071_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1071_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1071_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1076_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1076_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1076_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1076_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1076_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1076_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1081_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1081_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1081_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1081_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1081_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1081_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1084_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1084_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1084_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1084_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1084_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1084_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1091_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1091_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1091_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1091_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1091_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1091_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1096_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1096_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1096_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1096_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1096_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1096_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1100_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1100_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1100_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1100_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1100_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1100_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1106_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1106_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1106_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1106_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1106_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1106_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1110_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1110_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1110_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1110_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1110_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1110_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1114_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1114_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1114_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1114_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1114_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1114_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1119_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1119_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1119_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1119_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1119_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1119_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1125_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1125_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1125_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1125_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1125_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1125_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1131_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1131_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1131_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1131_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1131_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1131_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1134_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1134_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1134_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1134_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1134_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1134_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1139_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1139_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1139_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1139_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1139_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1139_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1146_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1146_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1146_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1146_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1146_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1146_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1150_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1150_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1150_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1150_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1150_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1150_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1156_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1156_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1156_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1156_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1156_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1156_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1160_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1160_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1160_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1160_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1160_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1160_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1165_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1165_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1165_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1165_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1165_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1165_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1170_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1170_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1170_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1170_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1170_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1170_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1177_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1177_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1177_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1177_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1177_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1177_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1184_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1184_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1184_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1184_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1184_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1184_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1189_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1189_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1189_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1189_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1189_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1189_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1194_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1194_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1194_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1194_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1194_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1194_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1197_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1197_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1197_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1197_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1197_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1197_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1204_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1204_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1204_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1204_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1204_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1204_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1208_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1208_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1208_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1208_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1208_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1208_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1214_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1214_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1214_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1214_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1214_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1214_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1218_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1218_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1218_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1218_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1218_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1218_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_1222_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1222_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_1222_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_1222_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_1222_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_1222_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_766_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_766_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_766_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_766_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_766_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_766_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_771_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_771_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_771_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_771_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_771_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_771_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_778_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_778_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_778_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_778_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_778_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_778_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_782_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_782_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_782_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_782_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_782_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_782_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_787_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_787_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_787_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_787_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_787_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_787_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_792_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_792_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_792_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_792_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_792_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_792_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_795_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_795_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_795_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_795_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_795_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_795_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_801_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_801_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_801_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_801_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_801_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_801_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_808_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_808_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_808_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_808_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_808_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_808_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_812_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_812_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_812_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_812_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_812_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_812_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_815_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_815_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_815_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_815_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_815_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_815_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_821_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_821_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_821_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_821_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_821_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_821_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_825_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_825_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_825_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_825_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_825_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_825_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_831_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_831_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_831_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_831_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_831_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_831_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_835_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_835_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_835_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_835_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_835_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_835_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_842_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_842_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_842_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_842_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_842_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_842_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_846_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_846_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_846_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_846_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_846_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_846_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_851_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_851_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_851_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_851_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_851_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_851_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_855_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_855_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_855_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_855_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_855_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_855_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_862_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_862_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_862_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_862_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_862_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_862_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_867_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_867_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_867_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_867_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_867_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_867_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_874_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_874_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_874_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_874_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_874_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_874_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_877_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_877_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_877_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_877_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_877_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_877_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_884_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_884_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_884_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_884_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_884_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_884_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_887_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_887_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_887_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_887_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_887_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_887_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_894_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_894_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_894_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_894_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_894_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_894_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_899_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_899_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_899_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_899_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_899_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_899_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_904_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_904_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_904_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_904_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_904_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_904_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_907_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_907_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_907_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_907_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_907_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_907_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_914_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_914_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_914_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_914_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_914_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_914_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_917_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_917_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_917_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_917_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_917_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_917_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_924_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_924_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_924_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_924_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_924_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_924_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_928_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_928_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_928_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_928_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_928_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_928_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_933_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_933_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_933_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_933_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_933_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_933_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_938_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_938_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_938_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_938_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_938_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_938_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_944_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_944_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_944_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_944_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_944_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_944_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_947_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_947_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_947_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_947_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_947_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_947_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_954_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_954_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_954_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_954_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_954_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_954_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_959_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_959_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_959_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_959_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_959_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_959_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_964_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_964_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_964_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_964_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_964_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_964_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_968_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_968_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_968_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_968_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_968_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_968_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_973_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_973_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_973_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_973_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_973_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_973_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_978_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_978_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_978_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_978_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_978_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_978_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_983_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_983_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_983_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_983_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_983_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_983_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_989_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_989_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_989_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_989_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_989_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_989_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_993_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_993_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_993_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_993_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_993_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_993_chunk USING btree (itemid, clock);


--
-- Name: _hyper_7_998_chunk_history_uint_clock_idx; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_998_chunk_history_uint_clock_idx ON _timescaledb_internal._hyper_7_998_chunk USING btree (clock DESC);


--
-- Name: _hyper_7_998_chunk_idx_36833_history_uint_1; Type: INDEX; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE INDEX _hyper_7_998_chunk_idx_36833_history_uint_1 ON _timescaledb_internal._hyper_7_998_chunk USING btree (itemid, clock);


--
-- Name: dashboard_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX dashboard_1 ON public.dashboard USING btree (userid);


--
-- Name: dashboard_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX dashboard_2 ON public.dashboard USING btree (templateid);


--
-- Name: history_clock_idx; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX history_clock_idx ON public.history USING btree (clock DESC);


--
-- Name: history_log_clock_idx; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX history_log_clock_idx ON public.history_log USING btree (clock DESC);


--
-- Name: history_str_clock_idx; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX history_str_clock_idx ON public.history_str USING btree (clock DESC);


--
-- Name: history_text_clock_idx; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX history_text_clock_idx ON public.history_text USING btree (clock DESC);


--
-- Name: history_uint_clock_idx; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX history_uint_clock_idx ON public.history_uint USING btree (clock DESC);


--
-- Name: idx_36299_acknowledges_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36299_acknowledges_1 ON public.acknowledges USING btree (userid);


--
-- Name: idx_36299_acknowledges_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36299_acknowledges_2 ON public.acknowledges USING btree (eventid);


--
-- Name: idx_36299_acknowledges_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36299_acknowledges_3 ON public.acknowledges USING btree (clock);


--
-- Name: idx_36310_actions_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36310_actions_1 ON public.actions USING btree (eventsource, status);


--
-- Name: idx_36310_actions_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36310_actions_2 ON public.actions USING btree (name);


--
-- Name: idx_36323_alerts_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36323_alerts_1 ON public.alerts USING btree (actionid);


--
-- Name: idx_36323_alerts_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36323_alerts_2 ON public.alerts USING btree (clock);


--
-- Name: idx_36323_alerts_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36323_alerts_3 ON public.alerts USING btree (eventid);


--
-- Name: idx_36323_alerts_4; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36323_alerts_4 ON public.alerts USING btree (status);


--
-- Name: idx_36323_alerts_5; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36323_alerts_5 ON public.alerts USING btree (mediatypeid);


--
-- Name: idx_36323_alerts_6; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36323_alerts_6 ON public.alerts USING btree (userid);


--
-- Name: idx_36323_alerts_7; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36323_alerts_7 ON public.alerts USING btree (p_eventid);


--
-- Name: idx_36323_c_alerts_6; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36323_c_alerts_6 ON public.alerts USING btree (acknowledgeid);


--
-- Name: idx_36337_applications_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36337_applications_2 ON public.applications USING btree (hostid, name);


--
-- Name: idx_36345_application_discovery_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36345_application_discovery_1 ON public.application_discovery USING btree (applicationid);


--
-- Name: idx_36345_application_discovery_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36345_application_discovery_2 ON public.application_discovery USING btree (application_prototypeid);


--
-- Name: idx_36354_application_prototype_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36354_application_prototype_1 ON public.application_prototype USING btree (itemid);


--
-- Name: idx_36354_application_prototype_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36354_application_prototype_2 ON public.application_prototype USING btree (templateid);


--
-- Name: idx_36361_application_template_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36361_application_template_1 ON public.application_template USING btree (applicationid, templateid);


--
-- Name: idx_36361_application_template_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36361_application_template_2 ON public.application_template USING btree (templateid);


--
-- Name: idx_36367_auditlog_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36367_auditlog_1 ON public.auditlog USING btree (userid, clock);


--
-- Name: idx_36367_auditlog_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36367_auditlog_2 ON public.auditlog USING btree (clock);


--
-- Name: idx_36367_auditlog_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36367_auditlog_3 ON public.auditlog USING btree (resourcetype, resourceid);


--
-- Name: idx_36379_auditlog_details_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36379_auditlog_details_1 ON public.auditlog_details USING btree (auditid);


--
-- Name: idx_36387_autoreg_host_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36387_autoreg_host_1 ON public.autoreg_host USING btree (host);


--
-- Name: idx_36387_autoreg_host_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36387_autoreg_host_2 ON public.autoreg_host USING btree (proxy_hostid);


--
-- Name: idx_36400_conditions_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36400_conditions_1 ON public.conditions USING btree (actionid);


--
-- Name: idx_36410_config_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36410_config_1 ON public.config USING btree (alert_usrgrpid);


--
-- Name: idx_36410_config_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36410_config_2 ON public.config USING btree (discovery_groupid);


--
-- Name: idx_36498_config_autoreg_tls_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36498_config_autoreg_tls_1 ON public.config_autoreg_tls USING btree (tls_psk_identity);


--
-- Name: idx_36506_correlation_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36506_correlation_1 ON public.correlation USING btree (status);


--
-- Name: idx_36506_correlation_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36506_correlation_2 ON public.correlation USING btree (name);


--
-- Name: idx_36516_corr_condition_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36516_corr_condition_1 ON public.corr_condition USING btree (correlationid);


--
-- Name: idx_36523_corr_condition_group_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36523_corr_condition_group_1 ON public.corr_condition_group USING btree (groupid);


--
-- Name: idx_36554_corr_operation_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36554_corr_operation_1 ON public.corr_operation USING btree (correlationid);


--
-- Name: idx_36561_c_dashboard_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36561_c_dashboard_1 ON public.dashboard USING btree (userid);


--
-- Name: idx_36568_c_dashboard_user_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36568_c_dashboard_user_2 ON public.dashboard_user USING btree (userid);


--
-- Name: idx_36568_dashboard_user_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36568_dashboard_user_1 ON public.dashboard_user USING btree (dashboardid, userid);


--
-- Name: idx_36575_c_dashboard_usrgrp_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36575_c_dashboard_usrgrp_2 ON public.dashboard_usrgrp USING btree (usrgrpid);


--
-- Name: idx_36575_dashboard_usrgrp_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36575_dashboard_usrgrp_1 ON public.dashboard_usrgrp USING btree (dashboardid, usrgrpid);


--
-- Name: idx_36587_dchecks_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36587_dchecks_1 ON public.dchecks USING btree (druleid, host_source, name_source);


--
-- Name: idx_36607_dhosts_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36607_dhosts_1 ON public.dhosts USING btree (druleid);


--
-- Name: idx_36616_drules_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36616_drules_1 ON public.drules USING btree (proxy_hostid);


--
-- Name: idx_36616_drules_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36616_drules_2 ON public.drules USING btree (name);


--
-- Name: idx_36627_dservices_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36627_dservices_1 ON public.dservices USING btree (dcheckid, ip, port);


--
-- Name: idx_36627_dservices_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36627_dservices_2 ON public.dservices USING btree (dhostid);


--
-- Name: idx_36640_escalations_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36640_escalations_1 ON public.escalations USING btree (triggerid, itemid, escalationid);


--
-- Name: idx_36640_escalations_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36640_escalations_2 ON public.escalations USING btree (eventid);


--
-- Name: idx_36640_escalations_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36640_escalations_3 ON public.escalations USING btree (nextcheck);


--
-- Name: idx_36649_events_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36649_events_1 ON public.events USING btree (source, object, objectid, clock);


--
-- Name: idx_36649_events_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36649_events_2 ON public.events USING btree (source, object, clock);


--
-- Name: idx_36664_event_recovery_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36664_event_recovery_1 ON public.event_recovery USING btree (r_eventid);


--
-- Name: idx_36664_event_recovery_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36664_event_recovery_2 ON public.event_recovery USING btree (c_eventid);


--
-- Name: idx_36670_event_suppress_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36670_event_suppress_1 ON public.event_suppress USING btree (eventid, maintenanceid);


--
-- Name: idx_36670_event_suppress_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36670_event_suppress_2 ON public.event_suppress USING btree (suppress_until);


--
-- Name: idx_36670_event_suppress_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36670_event_suppress_3 ON public.event_suppress USING btree (maintenanceid);


--
-- Name: idx_36677_event_tag_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36677_event_tag_1 ON public.event_tag USING btree (eventid);


--
-- Name: idx_36685_expressions_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36685_expressions_1 ON public.expressions USING btree (regexpid);


--
-- Name: idx_36695_functions_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36695_functions_1 ON public.functions USING btree (triggerid);


--
-- Name: idx_36695_functions_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36695_functions_2 ON public.functions USING btree (itemid, name, parameter);


--
-- Name: idx_36703_globalmacro_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36703_globalmacro_1 ON public.globalmacro USING btree (macro);


--
-- Name: idx_36719_graphs_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36719_graphs_1 ON public.graphs USING btree (name);


--
-- Name: idx_36719_graphs_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36719_graphs_2 ON public.graphs USING btree (templateid);


--
-- Name: idx_36719_graphs_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36719_graphs_3 ON public.graphs USING btree (ymin_itemid);


--
-- Name: idx_36719_graphs_4; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36719_graphs_4 ON public.graphs USING btree (ymax_itemid);


--
-- Name: idx_36741_graphs_items_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36741_graphs_items_1 ON public.graphs_items USING btree (itemid);


--
-- Name: idx_36741_graphs_items_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36741_graphs_items_2 ON public.graphs_items USING btree (graphid);


--
-- Name: idx_36753_graph_discovery_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36753_graph_discovery_1 ON public.graph_discovery USING btree (parent_graphid);


--
-- Name: idx_36761_graph_theme_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36761_graph_theme_1 ON public.graph_theme USING btree (theme);


--
-- Name: idx_36779_c_group_discovery_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36779_c_group_discovery_2 ON public.group_discovery USING btree (parent_group_prototypeid);


--
-- Name: idx_36788_c_group_prototype_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36788_c_group_prototype_2 ON public.group_prototype USING btree (groupid);


--
-- Name: idx_36788_c_group_prototype_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36788_c_group_prototype_3 ON public.group_prototype USING btree (templateid);


--
-- Name: idx_36788_group_prototype_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36788_group_prototype_1 ON public.group_prototype USING btree (hostid);


--
-- Name: idx_36795_history_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36795_history_1 ON public.history USING btree (itemid, clock);


--
-- Name: idx_36804_history_log_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36804_history_log_1 ON public.history_log USING btree (itemid, clock);


--
-- Name: idx_36816_history_str_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36816_history_str_1 ON public.history_str USING btree (itemid, clock);


--
-- Name: idx_36825_history_text_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36825_history_text_1 ON public.history_text USING btree (itemid, clock);


--
-- Name: idx_36833_history_uint_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36833_history_uint_1 ON public.history_uint USING btree (itemid, clock);


--
-- Name: idx_36842_hostmacro_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36842_hostmacro_1 ON public.hostmacro USING btree (hostid, macro);


--
-- Name: idx_36851_c_hosts_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36851_c_hosts_3 ON public.hosts USING btree (templateid);


--
-- Name: idx_36851_hosts_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36851_hosts_1 ON public.hosts USING btree (host);


--
-- Name: idx_36851_hosts_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36851_hosts_2 ON public.hosts USING btree (status);


--
-- Name: idx_36851_hosts_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36851_hosts_3 ON public.hosts USING btree (proxy_hostid);


--
-- Name: idx_36851_hosts_4; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36851_hosts_4 ON public.hosts USING btree (name);


--
-- Name: idx_36851_hosts_5; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36851_hosts_5 ON public.hosts USING btree (maintenanceid);


--
-- Name: idx_36894_hosts_groups_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36894_hosts_groups_1 ON public.hosts_groups USING btree (hostid, groupid);


--
-- Name: idx_36894_hosts_groups_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36894_hosts_groups_2 ON public.hosts_groups USING btree (groupid);


--
-- Name: idx_36900_hosts_templates_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_36900_hosts_templates_1 ON public.hosts_templates USING btree (hostid, templateid);


--
-- Name: idx_36900_hosts_templates_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36900_hosts_templates_2 ON public.hosts_templates USING btree (templateid);


--
-- Name: idx_36906_c_host_discovery_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36906_c_host_discovery_2 ON public.host_discovery USING btree (parent_hostid);


--
-- Name: idx_36906_c_host_discovery_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36906_c_host_discovery_3 ON public.host_discovery USING btree (parent_itemid);


--
-- Name: idx_36983_host_tag_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36983_host_tag_1 ON public.host_tag USING btree (hostid);


--
-- Name: idx_36999_hstgrp_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_36999_hstgrp_1 ON public.hstgrp USING btree (name);


--
-- Name: idx_37008_httpstep_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37008_httpstep_1 ON public.httpstep USING btree (httptestid);


--
-- Name: idx_37023_httpstepitem_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37023_httpstepitem_1 ON public.httpstepitem USING btree (httpstepid, itemid);


--
-- Name: idx_37023_httpstepitem_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37023_httpstepitem_2 ON public.httpstepitem USING btree (itemid);


--
-- Name: idx_37030_httpstep_field_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37030_httpstep_field_1 ON public.httpstep_field USING btree (httpstepid);


--
-- Name: idx_37038_httptest_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37038_httptest_1 ON public.httptest USING btree (applicationid);


--
-- Name: idx_37038_httptest_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37038_httptest_2 ON public.httptest USING btree (hostid, name);


--
-- Name: idx_37038_httptest_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37038_httptest_3 ON public.httptest USING btree (status);


--
-- Name: idx_37038_httptest_4; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37038_httptest_4 ON public.httptest USING btree (templateid);


--
-- Name: idx_37059_httptestitem_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37059_httptestitem_1 ON public.httptestitem USING btree (httptestid, itemid);


--
-- Name: idx_37059_httptestitem_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37059_httptestitem_2 ON public.httptestitem USING btree (itemid);


--
-- Name: idx_37066_httptest_field_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37066_httptest_field_1 ON public.httptest_field USING btree (httptestid);


--
-- Name: idx_37074_icon_map_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37074_icon_map_1 ON public.icon_map USING btree (name);


--
-- Name: idx_37074_icon_map_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37074_icon_map_2 ON public.icon_map USING btree (default_iconid);


--
-- Name: idx_37081_icon_mapping_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37081_icon_mapping_1 ON public.icon_mapping USING btree (iconmapid);


--
-- Name: idx_37081_icon_mapping_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37081_icon_mapping_2 ON public.icon_mapping USING btree (iconid);


--
-- Name: idx_37098_images_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37098_images_1 ON public.images USING btree (name);


--
-- Name: idx_37106_interface_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37106_interface_1 ON public.interface USING btree (hostid, type);


--
-- Name: idx_37106_interface_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37106_interface_2 ON public.interface USING btree (ip, dns);


--
-- Name: idx_37118_c_interface_discovery_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37118_c_interface_discovery_2 ON public.interface_discovery USING btree (parent_interfaceid);


--
-- Name: idx_37140_items_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37140_items_1 ON public.items USING btree (hostid, key_);


--
-- Name: idx_37140_items_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37140_items_3 ON public.items USING btree (status);


--
-- Name: idx_37140_items_4; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37140_items_4 ON public.items USING btree (templateid);


--
-- Name: idx_37140_items_5; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37140_items_5 ON public.items USING btree (valuemapid);


--
-- Name: idx_37140_items_6; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37140_items_6 ON public.items USING btree (interfaceid);


--
-- Name: idx_37140_items_7; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37140_items_7 ON public.items USING btree (master_itemid);


--
-- Name: idx_37187_items_applications_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37187_items_applications_1 ON public.items_applications USING btree (applicationid, itemid);


--
-- Name: idx_37187_items_applications_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37187_items_applications_2 ON public.items_applications USING btree (itemid);


--
-- Name: idx_37193_item_application_prototype_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37193_item_application_prototype_1 ON public.item_application_prototype USING btree (application_prototypeid, itemid);


--
-- Name: idx_37193_item_application_prototype_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37193_item_application_prototype_2 ON public.item_application_prototype USING btree (itemid);


--
-- Name: idx_37199_item_condition_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37199_item_condition_1 ON public.item_condition USING btree (itemid);


--
-- Name: idx_37208_item_discovery_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37208_item_discovery_1 ON public.item_discovery USING btree (itemid, parent_itemid);


--
-- Name: idx_37208_item_discovery_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37208_item_discovery_2 ON public.item_discovery USING btree (parent_itemid);


--
-- Name: idx_37217_item_preproc_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37217_item_preproc_1 ON public.item_preproc USING btree (itemid, step);


--
-- Name: idx_37237_lld_macro_path_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37237_lld_macro_path_1 ON public.lld_macro_path USING btree (itemid, lld_macro);


--
-- Name: idx_37245_lld_override_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37245_lld_override_1 ON public.lld_override USING btree (itemid, name);


--
-- Name: idx_37256_lld_override_condition_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37256_lld_override_condition_1 ON public.lld_override_condition USING btree (lld_overrideid);


--
-- Name: idx_37272_lld_override_operation_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37272_lld_override_operation_1 ON public.lld_override_operation USING btree (lld_overrideid);


--
-- Name: idx_37316_lld_override_optag_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37316_lld_override_optag_1 ON public.lld_override_optag USING btree (lld_override_operationid);


--
-- Name: idx_37324_lld_override_optemplate_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37324_lld_override_optemplate_1 ON public.lld_override_optemplate USING btree (lld_override_operationid, templateid);


--
-- Name: idx_37324_lld_override_optemplate_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37324_lld_override_optemplate_2 ON public.lld_override_optemplate USING btree (templateid);


--
-- Name: idx_37337_maintenances_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37337_maintenances_1 ON public.maintenances USING btree (active_since, active_till);


--
-- Name: idx_37337_maintenances_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37337_maintenances_2 ON public.maintenances USING btree (name);


--
-- Name: idx_37348_maintenances_groups_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37348_maintenances_groups_1 ON public.maintenances_groups USING btree (maintenanceid, groupid);


--
-- Name: idx_37348_maintenances_groups_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37348_maintenances_groups_2 ON public.maintenances_groups USING btree (groupid);


--
-- Name: idx_37354_maintenances_hosts_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37354_maintenances_hosts_1 ON public.maintenances_hosts USING btree (maintenanceid, hostid);


--
-- Name: idx_37354_maintenances_hosts_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37354_maintenances_hosts_2 ON public.maintenances_hosts USING btree (hostid);


--
-- Name: idx_37360_maintenances_windows_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37360_maintenances_windows_1 ON public.maintenances_windows USING btree (maintenanceid, timeperiodid);


--
-- Name: idx_37360_maintenances_windows_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37360_maintenances_windows_2 ON public.maintenances_windows USING btree (timeperiodid);


--
-- Name: idx_37366_maintenance_tag_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37366_maintenance_tag_1 ON public.maintenance_tag USING btree (maintenanceid);


--
-- Name: idx_37375_mappings_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37375_mappings_1 ON public.mappings USING btree (valuemapid);


--
-- Name: idx_37383_media_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37383_media_1 ON public.media USING btree (userid);


--
-- Name: idx_37383_media_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37383_media_2 ON public.media USING btree (mediatypeid);


--
-- Name: idx_37393_media_type_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37393_media_type_1 ON public.media_type USING btree (name);


--
-- Name: idx_37424_media_type_message_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37424_media_type_message_1 ON public.media_type_message USING btree (mediatypeid, eventsource, recovery);


--
-- Name: idx_37431_media_type_param_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37431_media_type_param_1 ON public.media_type_param USING btree (mediatypeid);


--
-- Name: idx_37448_opcommand_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37448_opcommand_1 ON public.opcommand USING btree (scriptid);


--
-- Name: idx_37462_opcommand_grp_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37462_opcommand_grp_1 ON public.opcommand_grp USING btree (operationid);


--
-- Name: idx_37462_opcommand_grp_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37462_opcommand_grp_2 ON public.opcommand_grp USING btree (groupid);


--
-- Name: idx_37468_opcommand_hst_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37468_opcommand_hst_1 ON public.opcommand_hst USING btree (operationid);


--
-- Name: idx_37468_opcommand_hst_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37468_opcommand_hst_2 ON public.opcommand_hst USING btree (hostid);


--
-- Name: idx_37474_opconditions_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37474_opconditions_1 ON public.opconditions USING btree (operationid);


--
-- Name: idx_37483_operations_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37483_operations_1 ON public.operations USING btree (actionid);


--
-- Name: idx_37495_opgroup_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37495_opgroup_1 ON public.opgroup USING btree (operationid, groupid);


--
-- Name: idx_37495_opgroup_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37495_opgroup_2 ON public.opgroup USING btree (groupid);


--
-- Name: idx_37508_opmessage_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37508_opmessage_1 ON public.opmessage USING btree (mediatypeid);


--
-- Name: idx_37516_opmessage_grp_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37516_opmessage_grp_1 ON public.opmessage_grp USING btree (operationid, usrgrpid);


--
-- Name: idx_37516_opmessage_grp_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37516_opmessage_grp_2 ON public.opmessage_grp USING btree (usrgrpid);


--
-- Name: idx_37522_opmessage_usr_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37522_opmessage_usr_1 ON public.opmessage_usr USING btree (operationid, userid);


--
-- Name: idx_37522_opmessage_usr_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37522_opmessage_usr_2 ON public.opmessage_usr USING btree (userid);


--
-- Name: idx_37528_optemplate_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37528_optemplate_1 ON public.optemplate USING btree (operationid, templateid);


--
-- Name: idx_37528_optemplate_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37528_optemplate_2 ON public.optemplate USING btree (templateid);


--
-- Name: idx_37534_problem_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37534_problem_1 ON public.problem USING btree (source, object, objectid);


--
-- Name: idx_37534_problem_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37534_problem_2 ON public.problem USING btree (r_clock);


--
-- Name: idx_37534_problem_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37534_problem_3 ON public.problem USING btree (r_eventid);


--
-- Name: idx_37550_problem_tag_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37550_problem_tag_1 ON public.problem_tag USING btree (eventid, tag, value);


--
-- Name: idx_37558_profiles_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37558_profiles_1 ON public.profiles USING btree (userid, idx, idx2);


--
-- Name: idx_37558_profiles_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37558_profiles_2 ON public.profiles USING btree (userid, profileid);


--
-- Name: idx_37573_proxy_autoreg_host_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37573_proxy_autoreg_host_1 ON public.proxy_autoreg_host USING btree (clock);


--
-- Name: idx_37590_proxy_dhistory_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37590_proxy_dhistory_1 ON public.proxy_dhistory USING btree (clock);


--
-- Name: idx_37590_proxy_dhistory_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37590_proxy_dhistory_2 ON public.proxy_dhistory USING btree (druleid);


--
-- Name: idx_37605_proxy_history_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37605_proxy_history_1 ON public.proxy_history USING btree (clock);


--
-- Name: idx_37623_regexps_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37623_regexps_1 ON public.regexps USING btree (name);


--
-- Name: idx_37630_rights_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37630_rights_1 ON public.rights USING btree (groupid);


--
-- Name: idx_37630_rights_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37630_rights_2 ON public.rights USING btree (id);


--
-- Name: idx_37637_c_screens_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37637_c_screens_3 ON public.screens USING btree (userid);


--
-- Name: idx_37646_screens_items_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37646_screens_items_1 ON public.screens_items USING btree (screenid);


--
-- Name: idx_37669_c_screen_user_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37669_c_screen_user_2 ON public.screen_user USING btree (userid);


--
-- Name: idx_37669_screen_user_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37669_screen_user_1 ON public.screen_user USING btree (screenid, userid);


--
-- Name: idx_37676_c_screen_usrgrp_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37676_c_screen_usrgrp_2 ON public.screen_usrgrp USING btree (usrgrpid);


--
-- Name: idx_37676_screen_usrgrp_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37676_screen_usrgrp_1 ON public.screen_usrgrp USING btree (screenid, usrgrpid);


--
-- Name: idx_37683_scripts_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37683_scripts_1 ON public.scripts USING btree (usrgrpid);


--
-- Name: idx_37683_scripts_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37683_scripts_2 ON public.scripts USING btree (groupid);


--
-- Name: idx_37683_scripts_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37683_scripts_3 ON public.scripts USING btree (name);


--
-- Name: idx_37695_services_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37695_services_1 ON public.services USING btree (triggerid);


--
-- Name: idx_37707_services_links_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37707_services_links_1 ON public.services_links USING btree (servicedownid);


--
-- Name: idx_37707_services_links_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37707_services_links_2 ON public.services_links USING btree (serviceupid, servicedownid);


--
-- Name: idx_37714_services_times_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37714_services_times_1 ON public.services_times USING btree (serviceid, type, ts_from, ts_to);


--
-- Name: idx_37724_service_alarms_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37724_service_alarms_1 ON public.service_alarms USING btree (serviceid, clock);


--
-- Name: idx_37724_service_alarms_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37724_service_alarms_2 ON public.service_alarms USING btree (clock);


--
-- Name: idx_37732_sessions_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37732_sessions_1 ON public.sessions USING btree (userid, status, lastaccess);


--
-- Name: idx_37741_slides_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37741_slides_1 ON public.slides USING btree (slideshowid);


--
-- Name: idx_37741_slides_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37741_slides_2 ON public.slides USING btree (screenid);


--
-- Name: idx_37749_c_slideshows_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37749_c_slideshows_3 ON public.slideshows USING btree (userid);


--
-- Name: idx_37749_slideshows_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37749_slideshows_1 ON public.slideshows USING btree (name);


--
-- Name: idx_37758_c_slideshow_user_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37758_c_slideshow_user_2 ON public.slideshow_user USING btree (userid);


--
-- Name: idx_37758_slideshow_user_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37758_slideshow_user_1 ON public.slideshow_user USING btree (slideshowid, userid);


--
-- Name: idx_37765_c_slideshow_usrgrp_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37765_c_slideshow_usrgrp_2 ON public.slideshow_usrgrp USING btree (usrgrpid);


--
-- Name: idx_37765_slideshow_usrgrp_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37765_slideshow_usrgrp_1 ON public.slideshow_usrgrp USING btree (slideshowid, usrgrpid);


--
-- Name: idx_37772_c_sysmaps_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37772_c_sysmaps_3 ON public.sysmaps USING btree (userid);


--
-- Name: idx_37772_sysmaps_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37772_sysmaps_1 ON public.sysmaps USING btree (name);


--
-- Name: idx_37772_sysmaps_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37772_sysmaps_2 ON public.sysmaps USING btree (backgroundid);


--
-- Name: idx_37772_sysmaps_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37772_sysmaps_3 ON public.sysmaps USING btree (iconmapid);


--
-- Name: idx_37805_sysmaps_elements_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37805_sysmaps_elements_1 ON public.sysmaps_elements USING btree (sysmapid);


--
-- Name: idx_37805_sysmaps_elements_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37805_sysmaps_elements_2 ON public.sysmaps_elements USING btree (iconid_off);


--
-- Name: idx_37805_sysmaps_elements_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37805_sysmaps_elements_3 ON public.sysmaps_elements USING btree (iconid_on);


--
-- Name: idx_37805_sysmaps_elements_4; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37805_sysmaps_elements_4 ON public.sysmaps_elements USING btree (iconid_disabled);


--
-- Name: idx_37805_sysmaps_elements_5; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37805_sysmaps_elements_5 ON public.sysmaps_elements USING btree (iconid_maintenance);


--
-- Name: idx_37824_sysmaps_links_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37824_sysmaps_links_1 ON public.sysmaps_links USING btree (sysmapid);


--
-- Name: idx_37824_sysmaps_links_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37824_sysmaps_links_2 ON public.sysmaps_links USING btree (selementid1);


--
-- Name: idx_37824_sysmaps_links_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37824_sysmaps_links_3 ON public.sysmaps_links USING btree (selementid2);


--
-- Name: idx_37833_sysmaps_link_triggers_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37833_sysmaps_link_triggers_1 ON public.sysmaps_link_triggers USING btree (linkid, triggerid);


--
-- Name: idx_37833_sysmaps_link_triggers_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37833_sysmaps_link_triggers_2 ON public.sysmaps_link_triggers USING btree (triggerid);


--
-- Name: idx_37841_c_sysmap_element_trigger_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37841_c_sysmap_element_trigger_2 ON public.sysmap_element_trigger USING btree (triggerid);


--
-- Name: idx_37841_sysmap_element_trigger_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37841_sysmap_element_trigger_1 ON public.sysmap_element_trigger USING btree (selementid, triggerid);


--
-- Name: idx_37847_sysmap_element_url_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37847_sysmap_element_url_1 ON public.sysmap_element_url USING btree (selementid, name);


--
-- Name: idx_37854_sysmap_shape_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37854_sysmap_shape_1 ON public.sysmap_shape USING btree (sysmapid);


--
-- Name: idx_37875_sysmap_url_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37875_sysmap_url_1 ON public.sysmap_url USING btree (sysmapid, name);


--
-- Name: idx_37883_c_sysmap_user_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37883_c_sysmap_user_2 ON public.sysmap_user USING btree (userid);


--
-- Name: idx_37883_sysmap_user_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37883_sysmap_user_1 ON public.sysmap_user USING btree (sysmapid, userid);


--
-- Name: idx_37890_c_sysmap_usrgrp_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37890_c_sysmap_usrgrp_2 ON public.sysmap_usrgrp USING btree (usrgrpid);


--
-- Name: idx_37890_sysmap_usrgrp_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_37890_sysmap_usrgrp_1 ON public.sysmap_usrgrp USING btree (sysmapid, usrgrpid);


--
-- Name: idx_37897_c_tag_filter_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37897_c_tag_filter_1 ON public.tag_filter USING btree (usrgrpid);


--
-- Name: idx_37897_c_tag_filter_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37897_c_tag_filter_2 ON public.tag_filter USING btree (groupid);


--
-- Name: idx_37905_c_task_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37905_c_task_1 ON public.task USING btree (proxy_hostid);


--
-- Name: idx_37905_task_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37905_task_1 ON public.task USING btree (status, proxy_hostid);


--
-- Name: idx_37960_task_result_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_37960_task_result_1 ON public.task_result USING btree (parent_taskid);


--
-- Name: idx_38003_triggers_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38003_triggers_1 ON public.triggers USING btree (status);


--
-- Name: idx_38003_triggers_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38003_triggers_2 ON public.triggers USING btree (value, lastchange);


--
-- Name: idx_38003_triggers_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38003_triggers_3 ON public.triggers USING btree (templateid);


--
-- Name: idx_38027_trigger_depends_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_38027_trigger_depends_1 ON public.trigger_depends USING btree (triggerid_down, triggerid_up);


--
-- Name: idx_38027_trigger_depends_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38027_trigger_depends_2 ON public.trigger_depends USING btree (triggerid_up);


--
-- Name: idx_38033_trigger_discovery_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38033_trigger_discovery_1 ON public.trigger_discovery USING btree (parent_triggerid);


--
-- Name: idx_38041_trigger_tag_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38041_trigger_tag_1 ON public.trigger_tag USING btree (triggerid);


--
-- Name: idx_38049_users_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_38049_users_1 ON public.users USING btree (alias);


--
-- Name: idx_38070_users_groups_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_38070_users_groups_1 ON public.users_groups USING btree (usrgrpid, userid);


--
-- Name: idx_38070_users_groups_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38070_users_groups_2 ON public.users_groups USING btree (userid);


--
-- Name: idx_38076_usrgrp_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_38076_usrgrp_1 ON public.usrgrp USING btree (name);


--
-- Name: idx_38086_valuemaps_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX idx_38086_valuemaps_1 ON public.valuemaps USING btree (name);


--
-- Name: idx_38093_widget_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38093_widget_1 ON public.widget USING btree (dashboardid);


--
-- Name: idx_38106_widget_field_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38106_widget_field_1 ON public.widget_field USING btree (widgetid);


--
-- Name: idx_38106_widget_field_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38106_widget_field_2 ON public.widget_field USING btree (value_groupid);


--
-- Name: idx_38106_widget_field_3; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38106_widget_field_3 ON public.widget_field USING btree (value_hostid);


--
-- Name: idx_38106_widget_field_4; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38106_widget_field_4 ON public.widget_field USING btree (value_itemid);


--
-- Name: idx_38106_widget_field_5; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38106_widget_field_5 ON public.widget_field USING btree (value_graphid);


--
-- Name: idx_38106_widget_field_6; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX idx_38106_widget_field_6 ON public.widget_field USING btree (value_sysmapid);


--
-- Name: item_parameter_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX item_parameter_1 ON public.item_parameter USING btree (itemid);


--
-- Name: role_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE UNIQUE INDEX role_1 ON public.role USING btree (name);


--
-- Name: role_rule_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX role_rule_1 ON public.role_rule USING btree (roleid);


--
-- Name: role_rule_2; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX role_rule_2 ON public.role_rule USING btree (value_moduleid);


--
-- Name: screens_1; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX screens_1 ON public.screens USING btree (userid);


--
-- Name: trends_clock_idx; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX trends_clock_idx ON public.trends USING btree (clock DESC);


--
-- Name: trends_uint_clock_idx; Type: INDEX; Schema: public; Owner: zabbix
--

CREATE INDEX trends_uint_clock_idx ON public.trends_uint USING btree (clock DESC);


--
-- Name: _compressed_hypertable_10 ts_insert_blocker; Type: TRIGGER; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON _timescaledb_internal._compressed_hypertable_10 FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: _compressed_hypertable_11 ts_insert_blocker; Type: TRIGGER; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON _timescaledb_internal._compressed_hypertable_11 FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: _compressed_hypertable_12 ts_insert_blocker; Type: TRIGGER; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON _timescaledb_internal._compressed_hypertable_12 FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: _compressed_hypertable_13 ts_insert_blocker; Type: TRIGGER; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON _timescaledb_internal._compressed_hypertable_13 FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: _compressed_hypertable_14 ts_insert_blocker; Type: TRIGGER; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON _timescaledb_internal._compressed_hypertable_14 FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: _compressed_hypertable_8 ts_insert_blocker; Type: TRIGGER; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON _timescaledb_internal._compressed_hypertable_8 FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: _compressed_hypertable_9 ts_insert_blocker; Type: TRIGGER; Schema: _timescaledb_internal; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON _timescaledb_internal._compressed_hypertable_9 FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: history ts_insert_blocker; Type: TRIGGER; Schema: public; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON public.history FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: history_log ts_insert_blocker; Type: TRIGGER; Schema: public; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON public.history_log FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: history_str ts_insert_blocker; Type: TRIGGER; Schema: public; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON public.history_str FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: history_text ts_insert_blocker; Type: TRIGGER; Schema: public; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON public.history_text FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: history_uint ts_insert_blocker; Type: TRIGGER; Schema: public; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON public.history_uint FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: trends ts_insert_blocker; Type: TRIGGER; Schema: public; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON public.trends FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: trends_uint ts_insert_blocker; Type: TRIGGER; Schema: public; Owner: zabbix
--

CREATE TRIGGER ts_insert_blocker BEFORE INSERT ON public.trends_uint FOR EACH ROW EXECUTE FUNCTION _timescaledb_internal.insert_blocker();


--
-- Name: acknowledges c_acknowledges_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.acknowledges
    ADD CONSTRAINT c_acknowledges_1 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: acknowledges c_acknowledges_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.acknowledges
    ADD CONSTRAINT c_acknowledges_2 FOREIGN KEY (eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: alerts c_alerts_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.alerts
    ADD CONSTRAINT c_alerts_1 FOREIGN KEY (actionid) REFERENCES public.actions(actionid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: alerts c_alerts_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.alerts
    ADD CONSTRAINT c_alerts_2 FOREIGN KEY (eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: alerts c_alerts_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.alerts
    ADD CONSTRAINT c_alerts_3 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: alerts c_alerts_4; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.alerts
    ADD CONSTRAINT c_alerts_4 FOREIGN KEY (mediatypeid) REFERENCES public.media_type(mediatypeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: alerts c_alerts_5; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.alerts
    ADD CONSTRAINT c_alerts_5 FOREIGN KEY (p_eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: alerts c_alerts_6; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.alerts
    ADD CONSTRAINT c_alerts_6 FOREIGN KEY (acknowledgeid) REFERENCES public.acknowledges(acknowledgeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: application_discovery c_application_discovery_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.application_discovery
    ADD CONSTRAINT c_application_discovery_1 FOREIGN KEY (applicationid) REFERENCES public.applications(applicationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: application_discovery c_application_discovery_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.application_discovery
    ADD CONSTRAINT c_application_discovery_2 FOREIGN KEY (application_prototypeid) REFERENCES public.application_prototype(application_prototypeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: application_prototype c_application_prototype_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.application_prototype
    ADD CONSTRAINT c_application_prototype_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: application_prototype c_application_prototype_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.application_prototype
    ADD CONSTRAINT c_application_prototype_2 FOREIGN KEY (templateid) REFERENCES public.application_prototype(application_prototypeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: application_template c_application_template_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.application_template
    ADD CONSTRAINT c_application_template_1 FOREIGN KEY (applicationid) REFERENCES public.applications(applicationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: application_template c_application_template_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.application_template
    ADD CONSTRAINT c_application_template_2 FOREIGN KEY (templateid) REFERENCES public.applications(applicationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: applications c_applications_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.applications
    ADD CONSTRAINT c_applications_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: auditlog c_auditlog_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.auditlog
    ADD CONSTRAINT c_auditlog_1 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: auditlog_details c_auditlog_details_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.auditlog_details
    ADD CONSTRAINT c_auditlog_details_1 FOREIGN KEY (auditid) REFERENCES public.auditlog(auditid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: autoreg_host c_autoreg_host_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.autoreg_host
    ADD CONSTRAINT c_autoreg_host_1 FOREIGN KEY (proxy_hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: conditions c_conditions_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.conditions
    ADD CONSTRAINT c_conditions_1 FOREIGN KEY (actionid) REFERENCES public.actions(actionid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: config c_config_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.config
    ADD CONSTRAINT c_config_1 FOREIGN KEY (alert_usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: config c_config_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.config
    ADD CONSTRAINT c_config_2 FOREIGN KEY (discovery_groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: corr_condition c_corr_condition_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.corr_condition
    ADD CONSTRAINT c_corr_condition_1 FOREIGN KEY (correlationid) REFERENCES public.correlation(correlationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: corr_condition_group c_corr_condition_group_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.corr_condition_group
    ADD CONSTRAINT c_corr_condition_group_1 FOREIGN KEY (corr_conditionid) REFERENCES public.corr_condition(corr_conditionid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: corr_condition_group c_corr_condition_group_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.corr_condition_group
    ADD CONSTRAINT c_corr_condition_group_2 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: corr_condition_tag c_corr_condition_tag_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.corr_condition_tag
    ADD CONSTRAINT c_corr_condition_tag_1 FOREIGN KEY (corr_conditionid) REFERENCES public.corr_condition(corr_conditionid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: corr_condition_tagpair c_corr_condition_tagpair_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.corr_condition_tagpair
    ADD CONSTRAINT c_corr_condition_tagpair_1 FOREIGN KEY (corr_conditionid) REFERENCES public.corr_condition(corr_conditionid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: corr_condition_tagvalue c_corr_condition_tagvalue_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.corr_condition_tagvalue
    ADD CONSTRAINT c_corr_condition_tagvalue_1 FOREIGN KEY (corr_conditionid) REFERENCES public.corr_condition(corr_conditionid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: corr_operation c_corr_operation_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.corr_operation
    ADD CONSTRAINT c_corr_operation_1 FOREIGN KEY (correlationid) REFERENCES public.correlation(correlationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: dashboard c_dashboard_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dashboard
    ADD CONSTRAINT c_dashboard_1 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: dashboard c_dashboard_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dashboard
    ADD CONSTRAINT c_dashboard_2 FOREIGN KEY (templateid) REFERENCES public.hosts(hostid) ON DELETE CASCADE;


--
-- Name: dashboard_user c_dashboard_user_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dashboard_user
    ADD CONSTRAINT c_dashboard_user_1 FOREIGN KEY (dashboardid) REFERENCES public.dashboard(dashboardid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: dashboard_user c_dashboard_user_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dashboard_user
    ADD CONSTRAINT c_dashboard_user_2 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: dashboard_usrgrp c_dashboard_usrgrp_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dashboard_usrgrp
    ADD CONSTRAINT c_dashboard_usrgrp_1 FOREIGN KEY (dashboardid) REFERENCES public.dashboard(dashboardid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: dashboard_usrgrp c_dashboard_usrgrp_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dashboard_usrgrp
    ADD CONSTRAINT c_dashboard_usrgrp_2 FOREIGN KEY (usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: dchecks c_dchecks_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dchecks
    ADD CONSTRAINT c_dchecks_1 FOREIGN KEY (druleid) REFERENCES public.drules(druleid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: dhosts c_dhosts_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dhosts
    ADD CONSTRAINT c_dhosts_1 FOREIGN KEY (druleid) REFERENCES public.drules(druleid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: drules c_drules_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.drules
    ADD CONSTRAINT c_drules_1 FOREIGN KEY (proxy_hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: dservices c_dservices_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dservices
    ADD CONSTRAINT c_dservices_1 FOREIGN KEY (dhostid) REFERENCES public.dhosts(dhostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: dservices c_dservices_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.dservices
    ADD CONSTRAINT c_dservices_2 FOREIGN KEY (dcheckid) REFERENCES public.dchecks(dcheckid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: event_recovery c_event_recovery_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.event_recovery
    ADD CONSTRAINT c_event_recovery_1 FOREIGN KEY (eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: event_recovery c_event_recovery_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.event_recovery
    ADD CONSTRAINT c_event_recovery_2 FOREIGN KEY (r_eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: event_recovery c_event_recovery_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.event_recovery
    ADD CONSTRAINT c_event_recovery_3 FOREIGN KEY (c_eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: event_suppress c_event_suppress_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.event_suppress
    ADD CONSTRAINT c_event_suppress_1 FOREIGN KEY (eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: event_suppress c_event_suppress_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.event_suppress
    ADD CONSTRAINT c_event_suppress_2 FOREIGN KEY (maintenanceid) REFERENCES public.maintenances(maintenanceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: event_tag c_event_tag_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.event_tag
    ADD CONSTRAINT c_event_tag_1 FOREIGN KEY (eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: expressions c_expressions_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.expressions
    ADD CONSTRAINT c_expressions_1 FOREIGN KEY (regexpid) REFERENCES public.regexps(regexpid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: functions c_functions_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.functions
    ADD CONSTRAINT c_functions_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: functions c_functions_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.functions
    ADD CONSTRAINT c_functions_2 FOREIGN KEY (triggerid) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: graph_discovery c_graph_discovery_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.graph_discovery
    ADD CONSTRAINT c_graph_discovery_1 FOREIGN KEY (graphid) REFERENCES public.graphs(graphid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: graph_discovery c_graph_discovery_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.graph_discovery
    ADD CONSTRAINT c_graph_discovery_2 FOREIGN KEY (parent_graphid) REFERENCES public.graphs(graphid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: graphs c_graphs_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.graphs
    ADD CONSTRAINT c_graphs_1 FOREIGN KEY (templateid) REFERENCES public.graphs(graphid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: graphs c_graphs_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.graphs
    ADD CONSTRAINT c_graphs_2 FOREIGN KEY (ymin_itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: graphs c_graphs_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.graphs
    ADD CONSTRAINT c_graphs_3 FOREIGN KEY (ymax_itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: graphs_items c_graphs_items_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.graphs_items
    ADD CONSTRAINT c_graphs_items_1 FOREIGN KEY (graphid) REFERENCES public.graphs(graphid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: graphs_items c_graphs_items_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.graphs_items
    ADD CONSTRAINT c_graphs_items_2 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: group_discovery c_group_discovery_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.group_discovery
    ADD CONSTRAINT c_group_discovery_1 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: group_discovery c_group_discovery_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.group_discovery
    ADD CONSTRAINT c_group_discovery_2 FOREIGN KEY (parent_group_prototypeid) REFERENCES public.group_prototype(group_prototypeid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: group_prototype c_group_prototype_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.group_prototype
    ADD CONSTRAINT c_group_prototype_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: group_prototype c_group_prototype_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.group_prototype
    ADD CONSTRAINT c_group_prototype_2 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: group_prototype c_group_prototype_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.group_prototype
    ADD CONSTRAINT c_group_prototype_3 FOREIGN KEY (templateid) REFERENCES public.group_prototype(group_prototypeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: host_discovery c_host_discovery_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.host_discovery
    ADD CONSTRAINT c_host_discovery_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: host_discovery c_host_discovery_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.host_discovery
    ADD CONSTRAINT c_host_discovery_2 FOREIGN KEY (parent_hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: host_discovery c_host_discovery_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.host_discovery
    ADD CONSTRAINT c_host_discovery_3 FOREIGN KEY (parent_itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: host_inventory c_host_inventory_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.host_inventory
    ADD CONSTRAINT c_host_inventory_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: host_tag c_host_tag_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.host_tag
    ADD CONSTRAINT c_host_tag_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: hostmacro c_hostmacro_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.hostmacro
    ADD CONSTRAINT c_hostmacro_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: hosts c_hosts_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.hosts
    ADD CONSTRAINT c_hosts_1 FOREIGN KEY (proxy_hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: hosts c_hosts_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.hosts
    ADD CONSTRAINT c_hosts_2 FOREIGN KEY (maintenanceid) REFERENCES public.maintenances(maintenanceid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: hosts c_hosts_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.hosts
    ADD CONSTRAINT c_hosts_3 FOREIGN KEY (templateid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: hosts_groups c_hosts_groups_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.hosts_groups
    ADD CONSTRAINT c_hosts_groups_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: hosts_groups c_hosts_groups_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.hosts_groups
    ADD CONSTRAINT c_hosts_groups_2 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: hosts_templates c_hosts_templates_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.hosts_templates
    ADD CONSTRAINT c_hosts_templates_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: hosts_templates c_hosts_templates_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.hosts_templates
    ADD CONSTRAINT c_hosts_templates_2 FOREIGN KEY (templateid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httpstep c_httpstep_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httpstep
    ADD CONSTRAINT c_httpstep_1 FOREIGN KEY (httptestid) REFERENCES public.httptest(httptestid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httpstep_field c_httpstep_field_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httpstep_field
    ADD CONSTRAINT c_httpstep_field_1 FOREIGN KEY (httpstepid) REFERENCES public.httpstep(httpstepid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httpstepitem c_httpstepitem_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httpstepitem
    ADD CONSTRAINT c_httpstepitem_1 FOREIGN KEY (httpstepid) REFERENCES public.httpstep(httpstepid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httpstepitem c_httpstepitem_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httpstepitem
    ADD CONSTRAINT c_httpstepitem_2 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httptest c_httptest_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httptest
    ADD CONSTRAINT c_httptest_1 FOREIGN KEY (applicationid) REFERENCES public.applications(applicationid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: httptest c_httptest_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httptest
    ADD CONSTRAINT c_httptest_2 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httptest c_httptest_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httptest
    ADD CONSTRAINT c_httptest_3 FOREIGN KEY (templateid) REFERENCES public.httptest(httptestid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httptest_field c_httptest_field_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httptest_field
    ADD CONSTRAINT c_httptest_field_1 FOREIGN KEY (httptestid) REFERENCES public.httptest(httptestid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httptestitem c_httptestitem_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httptestitem
    ADD CONSTRAINT c_httptestitem_1 FOREIGN KEY (httptestid) REFERENCES public.httptest(httptestid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: httptestitem c_httptestitem_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.httptestitem
    ADD CONSTRAINT c_httptestitem_2 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: icon_map c_icon_map_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.icon_map
    ADD CONSTRAINT c_icon_map_1 FOREIGN KEY (default_iconid) REFERENCES public.images(imageid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: icon_mapping c_icon_mapping_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.icon_mapping
    ADD CONSTRAINT c_icon_mapping_1 FOREIGN KEY (iconmapid) REFERENCES public.icon_map(iconmapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: icon_mapping c_icon_mapping_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.icon_mapping
    ADD CONSTRAINT c_icon_mapping_2 FOREIGN KEY (iconid) REFERENCES public.images(imageid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: interface c_interface_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.interface
    ADD CONSTRAINT c_interface_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: interface_discovery c_interface_discovery_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.interface_discovery
    ADD CONSTRAINT c_interface_discovery_1 FOREIGN KEY (interfaceid) REFERENCES public.interface(interfaceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: interface_discovery c_interface_discovery_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.interface_discovery
    ADD CONSTRAINT c_interface_discovery_2 FOREIGN KEY (parent_interfaceid) REFERENCES public.interface(interfaceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: interface_snmp c_interface_snmp_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.interface_snmp
    ADD CONSTRAINT c_interface_snmp_1 FOREIGN KEY (interfaceid) REFERENCES public.interface(interfaceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: item_application_prototype c_item_application_prototype_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.item_application_prototype
    ADD CONSTRAINT c_item_application_prototype_1 FOREIGN KEY (application_prototypeid) REFERENCES public.application_prototype(application_prototypeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: item_application_prototype c_item_application_prototype_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.item_application_prototype
    ADD CONSTRAINT c_item_application_prototype_2 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: item_condition c_item_condition_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.item_condition
    ADD CONSTRAINT c_item_condition_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: item_discovery c_item_discovery_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.item_discovery
    ADD CONSTRAINT c_item_discovery_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: item_discovery c_item_discovery_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.item_discovery
    ADD CONSTRAINT c_item_discovery_2 FOREIGN KEY (parent_itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: item_parameter c_item_parameter_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.item_parameter
    ADD CONSTRAINT c_item_parameter_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON DELETE CASCADE;


--
-- Name: item_preproc c_item_preproc_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.item_preproc
    ADD CONSTRAINT c_item_preproc_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: item_rtdata c_item_rtdata_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.item_rtdata
    ADD CONSTRAINT c_item_rtdata_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: items c_items_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.items
    ADD CONSTRAINT c_items_1 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: items c_items_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.items
    ADD CONSTRAINT c_items_2 FOREIGN KEY (templateid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: items c_items_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.items
    ADD CONSTRAINT c_items_3 FOREIGN KEY (valuemapid) REFERENCES public.valuemaps(valuemapid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: items c_items_4; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.items
    ADD CONSTRAINT c_items_4 FOREIGN KEY (interfaceid) REFERENCES public.interface(interfaceid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: items c_items_5; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.items
    ADD CONSTRAINT c_items_5 FOREIGN KEY (master_itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: items_applications c_items_applications_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.items_applications
    ADD CONSTRAINT c_items_applications_1 FOREIGN KEY (applicationid) REFERENCES public.applications(applicationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: items_applications c_items_applications_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.items_applications
    ADD CONSTRAINT c_items_applications_2 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_macro_path c_lld_macro_path_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_macro_path
    ADD CONSTRAINT c_lld_macro_path_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override c_lld_override_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override
    ADD CONSTRAINT c_lld_override_1 FOREIGN KEY (itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_condition c_lld_override_condition_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_condition
    ADD CONSTRAINT c_lld_override_condition_1 FOREIGN KEY (lld_overrideid) REFERENCES public.lld_override(lld_overrideid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_opdiscover c_lld_override_opdiscover_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_opdiscover
    ADD CONSTRAINT c_lld_override_opdiscover_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_operation c_lld_override_operation_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_operation
    ADD CONSTRAINT c_lld_override_operation_1 FOREIGN KEY (lld_overrideid) REFERENCES public.lld_override(lld_overrideid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_ophistory c_lld_override_ophistory_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_ophistory
    ADD CONSTRAINT c_lld_override_ophistory_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_opinventory c_lld_override_opinventory_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_opinventory
    ADD CONSTRAINT c_lld_override_opinventory_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_opperiod c_lld_override_opperiod_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_opperiod
    ADD CONSTRAINT c_lld_override_opperiod_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_opseverity c_lld_override_opseverity_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_opseverity
    ADD CONSTRAINT c_lld_override_opseverity_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_opstatus c_lld_override_opstatus_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_opstatus
    ADD CONSTRAINT c_lld_override_opstatus_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_optag c_lld_override_optag_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_optag
    ADD CONSTRAINT c_lld_override_optag_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_optemplate c_lld_override_optemplate_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_optemplate
    ADD CONSTRAINT c_lld_override_optemplate_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: lld_override_optemplate c_lld_override_optemplate_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_optemplate
    ADD CONSTRAINT c_lld_override_optemplate_2 FOREIGN KEY (templateid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: lld_override_optrends c_lld_override_optrends_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.lld_override_optrends
    ADD CONSTRAINT c_lld_override_optrends_1 FOREIGN KEY (lld_override_operationid) REFERENCES public.lld_override_operation(lld_override_operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: maintenance_tag c_maintenance_tag_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.maintenance_tag
    ADD CONSTRAINT c_maintenance_tag_1 FOREIGN KEY (maintenanceid) REFERENCES public.maintenances(maintenanceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: maintenances_groups c_maintenances_groups_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.maintenances_groups
    ADD CONSTRAINT c_maintenances_groups_1 FOREIGN KEY (maintenanceid) REFERENCES public.maintenances(maintenanceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: maintenances_groups c_maintenances_groups_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.maintenances_groups
    ADD CONSTRAINT c_maintenances_groups_2 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: maintenances_hosts c_maintenances_hosts_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.maintenances_hosts
    ADD CONSTRAINT c_maintenances_hosts_1 FOREIGN KEY (maintenanceid) REFERENCES public.maintenances(maintenanceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: maintenances_hosts c_maintenances_hosts_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.maintenances_hosts
    ADD CONSTRAINT c_maintenances_hosts_2 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: maintenances_windows c_maintenances_windows_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.maintenances_windows
    ADD CONSTRAINT c_maintenances_windows_1 FOREIGN KEY (maintenanceid) REFERENCES public.maintenances(maintenanceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: maintenances_windows c_maintenances_windows_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.maintenances_windows
    ADD CONSTRAINT c_maintenances_windows_2 FOREIGN KEY (timeperiodid) REFERENCES public.timeperiods(timeperiodid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: mappings c_mappings_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.mappings
    ADD CONSTRAINT c_mappings_1 FOREIGN KEY (valuemapid) REFERENCES public.valuemaps(valuemapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: media c_media_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.media
    ADD CONSTRAINT c_media_1 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: media c_media_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.media
    ADD CONSTRAINT c_media_2 FOREIGN KEY (mediatypeid) REFERENCES public.media_type(mediatypeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: media_type_message c_media_type_message_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.media_type_message
    ADD CONSTRAINT c_media_type_message_1 FOREIGN KEY (mediatypeid) REFERENCES public.media_type(mediatypeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: media_type_param c_media_type_param_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.media_type_param
    ADD CONSTRAINT c_media_type_param_1 FOREIGN KEY (mediatypeid) REFERENCES public.media_type(mediatypeid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opcommand c_opcommand_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opcommand
    ADD CONSTRAINT c_opcommand_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opcommand c_opcommand_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opcommand
    ADD CONSTRAINT c_opcommand_2 FOREIGN KEY (scriptid) REFERENCES public.scripts(scriptid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: opcommand_grp c_opcommand_grp_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opcommand_grp
    ADD CONSTRAINT c_opcommand_grp_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opcommand_grp c_opcommand_grp_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opcommand_grp
    ADD CONSTRAINT c_opcommand_grp_2 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: opcommand_hst c_opcommand_hst_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opcommand_hst
    ADD CONSTRAINT c_opcommand_hst_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opcommand_hst c_opcommand_hst_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opcommand_hst
    ADD CONSTRAINT c_opcommand_hst_2 FOREIGN KEY (hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: opconditions c_opconditions_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opconditions
    ADD CONSTRAINT c_opconditions_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: operations c_operations_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.operations
    ADD CONSTRAINT c_operations_1 FOREIGN KEY (actionid) REFERENCES public.actions(actionid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opgroup c_opgroup_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opgroup
    ADD CONSTRAINT c_opgroup_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opgroup c_opgroup_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opgroup
    ADD CONSTRAINT c_opgroup_2 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: opinventory c_opinventory_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opinventory
    ADD CONSTRAINT c_opinventory_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opmessage c_opmessage_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opmessage
    ADD CONSTRAINT c_opmessage_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opmessage c_opmessage_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opmessage
    ADD CONSTRAINT c_opmessage_2 FOREIGN KEY (mediatypeid) REFERENCES public.media_type(mediatypeid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: opmessage_grp c_opmessage_grp_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opmessage_grp
    ADD CONSTRAINT c_opmessage_grp_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opmessage_grp c_opmessage_grp_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opmessage_grp
    ADD CONSTRAINT c_opmessage_grp_2 FOREIGN KEY (usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: opmessage_usr c_opmessage_usr_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opmessage_usr
    ADD CONSTRAINT c_opmessage_usr_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: opmessage_usr c_opmessage_usr_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.opmessage_usr
    ADD CONSTRAINT c_opmessage_usr_2 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: optemplate c_optemplate_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.optemplate
    ADD CONSTRAINT c_optemplate_1 FOREIGN KEY (operationid) REFERENCES public.operations(operationid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: optemplate c_optemplate_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.optemplate
    ADD CONSTRAINT c_optemplate_2 FOREIGN KEY (templateid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: problem c_problem_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.problem
    ADD CONSTRAINT c_problem_1 FOREIGN KEY (eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: problem c_problem_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.problem
    ADD CONSTRAINT c_problem_2 FOREIGN KEY (r_eventid) REFERENCES public.events(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: problem_tag c_problem_tag_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.problem_tag
    ADD CONSTRAINT c_problem_tag_1 FOREIGN KEY (eventid) REFERENCES public.problem(eventid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: profiles c_profiles_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.profiles
    ADD CONSTRAINT c_profiles_1 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: rights c_rights_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.rights
    ADD CONSTRAINT c_rights_1 FOREIGN KEY (groupid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: rights c_rights_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.rights
    ADD CONSTRAINT c_rights_2 FOREIGN KEY (id) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: role_rule c_role_rule_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.role_rule
    ADD CONSTRAINT c_role_rule_1 FOREIGN KEY (roleid) REFERENCES public.role(roleid) ON DELETE CASCADE;


--
-- Name: role_rule c_role_rule_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.role_rule
    ADD CONSTRAINT c_role_rule_2 FOREIGN KEY (value_moduleid) REFERENCES public.module(moduleid) ON DELETE CASCADE;


--
-- Name: screen_user c_screen_user_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.screen_user
    ADD CONSTRAINT c_screen_user_1 FOREIGN KEY (screenid) REFERENCES public.screens(screenid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: screen_user c_screen_user_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.screen_user
    ADD CONSTRAINT c_screen_user_2 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: screen_usrgrp c_screen_usrgrp_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.screen_usrgrp
    ADD CONSTRAINT c_screen_usrgrp_1 FOREIGN KEY (screenid) REFERENCES public.screens(screenid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: screen_usrgrp c_screen_usrgrp_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.screen_usrgrp
    ADD CONSTRAINT c_screen_usrgrp_2 FOREIGN KEY (usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: screens c_screens_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.screens
    ADD CONSTRAINT c_screens_3 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: screens_items c_screens_items_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.screens_items
    ADD CONSTRAINT c_screens_items_1 FOREIGN KEY (screenid) REFERENCES public.screens(screenid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: scripts c_scripts_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.scripts
    ADD CONSTRAINT c_scripts_1 FOREIGN KEY (usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: scripts c_scripts_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.scripts
    ADD CONSTRAINT c_scripts_2 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: service_alarms c_service_alarms_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.service_alarms
    ADD CONSTRAINT c_service_alarms_1 FOREIGN KEY (serviceid) REFERENCES public.services(serviceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: services c_services_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.services
    ADD CONSTRAINT c_services_1 FOREIGN KEY (triggerid) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: services_links c_services_links_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.services_links
    ADD CONSTRAINT c_services_links_1 FOREIGN KEY (serviceupid) REFERENCES public.services(serviceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: services_links c_services_links_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.services_links
    ADD CONSTRAINT c_services_links_2 FOREIGN KEY (servicedownid) REFERENCES public.services(serviceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: services_times c_services_times_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.services_times
    ADD CONSTRAINT c_services_times_1 FOREIGN KEY (serviceid) REFERENCES public.services(serviceid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sessions c_sessions_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sessions
    ADD CONSTRAINT c_sessions_1 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: slides c_slides_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.slides
    ADD CONSTRAINT c_slides_1 FOREIGN KEY (slideshowid) REFERENCES public.slideshows(slideshowid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: slides c_slides_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.slides
    ADD CONSTRAINT c_slides_2 FOREIGN KEY (screenid) REFERENCES public.screens(screenid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: slideshow_user c_slideshow_user_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.slideshow_user
    ADD CONSTRAINT c_slideshow_user_1 FOREIGN KEY (slideshowid) REFERENCES public.slideshows(slideshowid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: slideshow_user c_slideshow_user_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.slideshow_user
    ADD CONSTRAINT c_slideshow_user_2 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: slideshow_usrgrp c_slideshow_usrgrp_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.slideshow_usrgrp
    ADD CONSTRAINT c_slideshow_usrgrp_1 FOREIGN KEY (slideshowid) REFERENCES public.slideshows(slideshowid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: slideshow_usrgrp c_slideshow_usrgrp_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.slideshow_usrgrp
    ADD CONSTRAINT c_slideshow_usrgrp_2 FOREIGN KEY (usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: slideshows c_slideshows_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.slideshows
    ADD CONSTRAINT c_slideshows_3 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: sysmap_element_trigger c_sysmap_element_trigger_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_element_trigger
    ADD CONSTRAINT c_sysmap_element_trigger_1 FOREIGN KEY (selementid) REFERENCES public.sysmaps_elements(selementid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmap_element_trigger c_sysmap_element_trigger_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_element_trigger
    ADD CONSTRAINT c_sysmap_element_trigger_2 FOREIGN KEY (triggerid) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmap_element_url c_sysmap_element_url_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_element_url
    ADD CONSTRAINT c_sysmap_element_url_1 FOREIGN KEY (selementid) REFERENCES public.sysmaps_elements(selementid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmap_shape c_sysmap_shape_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_shape
    ADD CONSTRAINT c_sysmap_shape_1 FOREIGN KEY (sysmapid) REFERENCES public.sysmaps(sysmapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmap_url c_sysmap_url_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_url
    ADD CONSTRAINT c_sysmap_url_1 FOREIGN KEY (sysmapid) REFERENCES public.sysmaps(sysmapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmap_user c_sysmap_user_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_user
    ADD CONSTRAINT c_sysmap_user_1 FOREIGN KEY (sysmapid) REFERENCES public.sysmaps(sysmapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmap_user c_sysmap_user_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_user
    ADD CONSTRAINT c_sysmap_user_2 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmap_usrgrp c_sysmap_usrgrp_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_usrgrp
    ADD CONSTRAINT c_sysmap_usrgrp_1 FOREIGN KEY (sysmapid) REFERENCES public.sysmaps(sysmapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmap_usrgrp c_sysmap_usrgrp_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmap_usrgrp
    ADD CONSTRAINT c_sysmap_usrgrp_2 FOREIGN KEY (usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmaps c_sysmaps_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps
    ADD CONSTRAINT c_sysmaps_1 FOREIGN KEY (backgroundid) REFERENCES public.images(imageid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: sysmaps c_sysmaps_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps
    ADD CONSTRAINT c_sysmaps_2 FOREIGN KEY (iconmapid) REFERENCES public.icon_map(iconmapid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: sysmaps c_sysmaps_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps
    ADD CONSTRAINT c_sysmaps_3 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: sysmaps_elements c_sysmaps_elements_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_elements
    ADD CONSTRAINT c_sysmaps_elements_1 FOREIGN KEY (sysmapid) REFERENCES public.sysmaps(sysmapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmaps_elements c_sysmaps_elements_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_elements
    ADD CONSTRAINT c_sysmaps_elements_2 FOREIGN KEY (iconid_off) REFERENCES public.images(imageid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: sysmaps_elements c_sysmaps_elements_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_elements
    ADD CONSTRAINT c_sysmaps_elements_3 FOREIGN KEY (iconid_on) REFERENCES public.images(imageid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: sysmaps_elements c_sysmaps_elements_4; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_elements
    ADD CONSTRAINT c_sysmaps_elements_4 FOREIGN KEY (iconid_disabled) REFERENCES public.images(imageid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: sysmaps_elements c_sysmaps_elements_5; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_elements
    ADD CONSTRAINT c_sysmaps_elements_5 FOREIGN KEY (iconid_maintenance) REFERENCES public.images(imageid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: sysmaps_link_triggers c_sysmaps_link_triggers_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_link_triggers
    ADD CONSTRAINT c_sysmaps_link_triggers_1 FOREIGN KEY (linkid) REFERENCES public.sysmaps_links(linkid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmaps_link_triggers c_sysmaps_link_triggers_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_link_triggers
    ADD CONSTRAINT c_sysmaps_link_triggers_2 FOREIGN KEY (triggerid) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmaps_links c_sysmaps_links_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_links
    ADD CONSTRAINT c_sysmaps_links_1 FOREIGN KEY (sysmapid) REFERENCES public.sysmaps(sysmapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmaps_links c_sysmaps_links_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_links
    ADD CONSTRAINT c_sysmaps_links_2 FOREIGN KEY (selementid1) REFERENCES public.sysmaps_elements(selementid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: sysmaps_links c_sysmaps_links_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.sysmaps_links
    ADD CONSTRAINT c_sysmaps_links_3 FOREIGN KEY (selementid2) REFERENCES public.sysmaps_elements(selementid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: tag_filter c_tag_filter_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.tag_filter
    ADD CONSTRAINT c_tag_filter_1 FOREIGN KEY (usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: tag_filter c_tag_filter_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.tag_filter
    ADD CONSTRAINT c_tag_filter_2 FOREIGN KEY (groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: task c_task_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.task
    ADD CONSTRAINT c_task_1 FOREIGN KEY (proxy_hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: task_acknowledge c_task_acknowledge_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.task_acknowledge
    ADD CONSTRAINT c_task_acknowledge_1 FOREIGN KEY (taskid) REFERENCES public.task(taskid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: task_check_now c_task_check_now_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.task_check_now
    ADD CONSTRAINT c_task_check_now_1 FOREIGN KEY (taskid) REFERENCES public.task(taskid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: task_close_problem c_task_close_problem_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.task_close_problem
    ADD CONSTRAINT c_task_close_problem_1 FOREIGN KEY (taskid) REFERENCES public.task(taskid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: task_data c_task_data_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.task_data
    ADD CONSTRAINT c_task_data_1 FOREIGN KEY (taskid) REFERENCES public.task(taskid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: task_remote_command c_task_remote_command_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.task_remote_command
    ADD CONSTRAINT c_task_remote_command_1 FOREIGN KEY (taskid) REFERENCES public.task(taskid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: task_remote_command_result c_task_remote_command_result_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.task_remote_command_result
    ADD CONSTRAINT c_task_remote_command_result_1 FOREIGN KEY (taskid) REFERENCES public.task(taskid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: task_result c_task_result_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.task_result
    ADD CONSTRAINT c_task_result_1 FOREIGN KEY (taskid) REFERENCES public.task(taskid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: trigger_depends c_trigger_depends_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.trigger_depends
    ADD CONSTRAINT c_trigger_depends_1 FOREIGN KEY (triggerid_down) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: trigger_depends c_trigger_depends_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.trigger_depends
    ADD CONSTRAINT c_trigger_depends_2 FOREIGN KEY (triggerid_up) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: trigger_discovery c_trigger_discovery_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.trigger_discovery
    ADD CONSTRAINT c_trigger_discovery_1 FOREIGN KEY (triggerid) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: trigger_discovery c_trigger_discovery_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.trigger_discovery
    ADD CONSTRAINT c_trigger_discovery_2 FOREIGN KEY (parent_triggerid) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE RESTRICT;


--
-- Name: trigger_tag c_trigger_tag_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.trigger_tag
    ADD CONSTRAINT c_trigger_tag_1 FOREIGN KEY (triggerid) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: triggers c_triggers_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.triggers
    ADD CONSTRAINT c_triggers_1 FOREIGN KEY (templateid) REFERENCES public.triggers(triggerid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: users c_users_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.users
    ADD CONSTRAINT c_users_1 FOREIGN KEY (roleid) REFERENCES public.role(roleid) ON DELETE CASCADE;


--
-- Name: users_groups c_users_groups_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.users_groups
    ADD CONSTRAINT c_users_groups_1 FOREIGN KEY (usrgrpid) REFERENCES public.usrgrp(usrgrpid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: users_groups c_users_groups_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.users_groups
    ADD CONSTRAINT c_users_groups_2 FOREIGN KEY (userid) REFERENCES public.users(userid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: widget c_widget_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.widget
    ADD CONSTRAINT c_widget_1 FOREIGN KEY (dashboardid) REFERENCES public.dashboard(dashboardid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: widget_field c_widget_field_1; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.widget_field
    ADD CONSTRAINT c_widget_field_1 FOREIGN KEY (widgetid) REFERENCES public.widget(widgetid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: widget_field c_widget_field_2; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.widget_field
    ADD CONSTRAINT c_widget_field_2 FOREIGN KEY (value_groupid) REFERENCES public.hstgrp(groupid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: widget_field c_widget_field_3; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.widget_field
    ADD CONSTRAINT c_widget_field_3 FOREIGN KEY (value_hostid) REFERENCES public.hosts(hostid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: widget_field c_widget_field_4; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.widget_field
    ADD CONSTRAINT c_widget_field_4 FOREIGN KEY (value_itemid) REFERENCES public.items(itemid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: widget_field c_widget_field_5; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.widget_field
    ADD CONSTRAINT c_widget_field_5 FOREIGN KEY (value_graphid) REFERENCES public.graphs(graphid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: widget_field c_widget_field_6; Type: FK CONSTRAINT; Schema: public; Owner: zabbix
--

ALTER TABLE ONLY public.widget_field
    ADD CONSTRAINT c_widget_field_6 FOREIGN KEY (value_sysmapid) REFERENCES public.sysmaps(sysmapid) ON UPDATE RESTRICT ON DELETE CASCADE;


--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA public TO zabbix;
GRANT USAGE ON SCHEMA public TO grafana;


--
-- Name: FUNCTION add_reorder_policy(hypertable regclass, index_name name, if_not_exists boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.add_reorder_policy(hypertable regclass, index_name name, if_not_exists boolean) TO grafana;


--
-- Name: FUNCTION attach_tablespace(tablespace name, hypertable regclass, if_not_attached boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.attach_tablespace(tablespace name, hypertable regclass, if_not_attached boolean) TO grafana;


--
-- Name: FUNCTION compress_chunk(uncompressed_chunk regclass, if_not_compressed boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.compress_chunk(uncompressed_chunk regclass, if_not_compressed boolean) TO grafana;


--
-- Name: FUNCTION decompress_chunk(uncompressed_chunk regclass, if_compressed boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.decompress_chunk(uncompressed_chunk regclass, if_compressed boolean) TO grafana;


--
-- Name: FUNCTION detach_tablespace(tablespace name, hypertable regclass, if_attached boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.detach_tablespace(tablespace name, hypertable regclass, if_attached boolean) TO grafana;


--
-- Name: FUNCTION detach_tablespaces(hypertable regclass); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.detach_tablespaces(hypertable regclass) TO grafana;


--
-- Name: FUNCTION get_telemetry_report(always_display_report boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.get_telemetry_report(always_display_report boolean) TO grafana;


--
-- Name: FUNCTION interpolate(value real, prev record, next record); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.interpolate(value real, prev record, next record) TO grafana;


--
-- Name: FUNCTION interpolate(value double precision, prev record, next record); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.interpolate(value double precision, prev record, next record) TO grafana;


--
-- Name: FUNCTION interpolate(value smallint, prev record, next record); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.interpolate(value smallint, prev record, next record) TO grafana;


--
-- Name: FUNCTION interpolate(value integer, prev record, next record); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.interpolate(value integer, prev record, next record) TO grafana;


--
-- Name: FUNCTION interpolate(value bigint, prev record, next record); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.interpolate(value bigint, prev record, next record) TO grafana;


--
-- Name: FUNCTION locf(value anyelement, prev anyelement, treat_null_as_missing boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.locf(value anyelement, prev anyelement, treat_null_as_missing boolean) TO grafana;


--
-- Name: FUNCTION move_chunk(chunk regclass, destination_tablespace name, index_destination_tablespace name, reorder_index regclass, "verbose" boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.move_chunk(chunk regclass, destination_tablespace name, index_destination_tablespace name, reorder_index regclass, "verbose" boolean) TO grafana;


--
-- Name: FUNCTION remove_reorder_policy(hypertable regclass, if_exists boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.remove_reorder_policy(hypertable regclass, if_exists boolean) TO grafana;


--
-- Name: FUNCTION reorder_chunk(chunk regclass, index regclass, "verbose" boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.reorder_chunk(chunk regclass, index regclass, "verbose" boolean) TO grafana;


--
-- Name: FUNCTION set_adaptive_chunking(hypertable regclass, chunk_target_size text, INOUT chunk_sizing_func regproc, OUT chunk_target_size bigint); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.set_adaptive_chunking(hypertable regclass, chunk_target_size text, INOUT chunk_sizing_func regproc, OUT chunk_target_size bigint) TO grafana;


--
-- Name: FUNCTION set_integer_now_func(hypertable regclass, integer_now_func regproc, replace_if_exists boolean); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.set_integer_now_func(hypertable regclass, integer_now_func regproc, replace_if_exists boolean) TO grafana;


--
-- Name: FUNCTION show_tablespaces(hypertable regclass); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.show_tablespaces(hypertable regclass) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width smallint, ts smallint); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width smallint, ts smallint) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width integer, ts integer); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width integer, ts integer) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width bigint, ts bigint); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width bigint, ts bigint) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts date); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts date) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts timestamp without time zone); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts timestamp without time zone) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts timestamp with time zone); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts timestamp with time zone) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width smallint, ts smallint, "offset" smallint); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width smallint, ts smallint, "offset" smallint) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width integer, ts integer, "offset" integer); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width integer, ts integer, "offset" integer) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width bigint, ts bigint, "offset" bigint); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width bigint, ts bigint, "offset" bigint) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts date, origin date); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts date, origin date) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts date, "offset" interval); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts date, "offset" interval) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts timestamp without time zone, "offset" interval); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts timestamp without time zone, "offset" interval) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts timestamp without time zone, origin timestamp without time zone); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts timestamp without time zone, origin timestamp without time zone) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts timestamp with time zone, "offset" interval); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts timestamp with time zone, "offset" interval) TO grafana;


--
-- Name: FUNCTION time_bucket(bucket_width interval, ts timestamp with time zone, origin timestamp with time zone); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket(bucket_width interval, ts timestamp with time zone, origin timestamp with time zone) TO grafana;


--
-- Name: FUNCTION time_bucket_gapfill(bucket_width smallint, ts smallint, start smallint, finish smallint); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket_gapfill(bucket_width smallint, ts smallint, start smallint, finish smallint) TO grafana;


--
-- Name: FUNCTION time_bucket_gapfill(bucket_width integer, ts integer, start integer, finish integer); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket_gapfill(bucket_width integer, ts integer, start integer, finish integer) TO grafana;


--
-- Name: FUNCTION time_bucket_gapfill(bucket_width bigint, ts bigint, start bigint, finish bigint); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket_gapfill(bucket_width bigint, ts bigint, start bigint, finish bigint) TO grafana;


--
-- Name: FUNCTION time_bucket_gapfill(bucket_width interval, ts date, start date, finish date); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket_gapfill(bucket_width interval, ts date, start date, finish date) TO grafana;


--
-- Name: FUNCTION time_bucket_gapfill(bucket_width interval, ts timestamp without time zone, start timestamp without time zone, finish timestamp without time zone); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket_gapfill(bucket_width interval, ts timestamp without time zone, start timestamp without time zone, finish timestamp without time zone) TO grafana;


--
-- Name: FUNCTION time_bucket_gapfill(bucket_width interval, ts timestamp with time zone, start timestamp with time zone, finish timestamp with time zone); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.time_bucket_gapfill(bucket_width interval, ts timestamp with time zone, start timestamp with time zone, finish timestamp with time zone) TO grafana;


--
-- Name: FUNCTION timescaledb_post_restore(); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.timescaledb_post_restore() TO grafana;


--
-- Name: FUNCTION timescaledb_pre_restore(); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.timescaledb_pre_restore() TO grafana;


--
-- Name: FUNCTION zbx_ts_unix_now(); Type: ACL; Schema: public; Owner: zabbix
--

GRANT ALL ON FUNCTION public.zbx_ts_unix_now() TO grafana;


--
-- Name: FUNCTION first(anyelement, "any"); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.first(anyelement, "any") TO grafana;


--
-- Name: FUNCTION histogram(double precision, double precision, double precision, integer); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.histogram(double precision, double precision, double precision, integer) TO grafana;


--
-- Name: FUNCTION last(anyelement, "any"); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.last(anyelement, "any") TO grafana;


--
-- Name: TABLE history; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.history TO grafana;


--
-- Name: TABLE _hyper_1_1002_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1002_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1008_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1008_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1012_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1012_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1017_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1017_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1025_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1025_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1029_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1029_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1034_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1034_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1040_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1040_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1046_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1046_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1049_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1049_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1054_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1054_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1059_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1059_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1064_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1064_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1069_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1069_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1075_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1075_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1079_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1079_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1085_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1085_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1089_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1089_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1094_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1094_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1099_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1099_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1104_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1104_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1109_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1109_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1116_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1116_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1120_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1120_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1124_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1124_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1129_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1129_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1135_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1135_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1140_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1140_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1144_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1144_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1149_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1149_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1154_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1154_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1159_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1159_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1164_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1164_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1169_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1169_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1176_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1176_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1181_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1181_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1186_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1186_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1193_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1193_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1196_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1196_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1201_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1201_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1206_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1206_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1211_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1211_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1216_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1216_chunk TO grafana;


--
-- Name: TABLE _hyper_1_1221_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_1221_chunk TO grafana;


--
-- Name: TABLE _hyper_1_765_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_765_chunk TO grafana;


--
-- Name: TABLE _hyper_1_770_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_770_chunk TO grafana;


--
-- Name: TABLE _hyper_1_775_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_775_chunk TO grafana;


--
-- Name: TABLE _hyper_1_780_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_780_chunk TO grafana;


--
-- Name: TABLE _hyper_1_785_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_785_chunk TO grafana;


--
-- Name: TABLE _hyper_1_790_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_790_chunk TO grafana;


--
-- Name: TABLE _hyper_1_796_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_796_chunk TO grafana;


--
-- Name: TABLE _hyper_1_800_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_800_chunk TO grafana;


--
-- Name: TABLE _hyper_1_807_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_807_chunk TO grafana;


--
-- Name: TABLE _hyper_1_810_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_810_chunk TO grafana;


--
-- Name: TABLE _hyper_1_816_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_816_chunk TO grafana;


--
-- Name: TABLE _hyper_1_820_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_820_chunk TO grafana;


--
-- Name: TABLE _hyper_1_826_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_826_chunk TO grafana;


--
-- Name: TABLE _hyper_1_830_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_830_chunk TO grafana;


--
-- Name: TABLE _hyper_1_836_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_836_chunk TO grafana;


--
-- Name: TABLE _hyper_1_840_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_840_chunk TO grafana;


--
-- Name: TABLE _hyper_1_845_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_845_chunk TO grafana;


--
-- Name: TABLE _hyper_1_850_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_850_chunk TO grafana;


--
-- Name: TABLE _hyper_1_856_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_856_chunk TO grafana;


--
-- Name: TABLE _hyper_1_861_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_861_chunk TO grafana;


--
-- Name: TABLE _hyper_1_865_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_865_chunk TO grafana;


--
-- Name: TABLE _hyper_1_872_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_872_chunk TO grafana;


--
-- Name: TABLE _hyper_1_878_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_878_chunk TO grafana;


--
-- Name: TABLE _hyper_1_883_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_883_chunk TO grafana;


--
-- Name: TABLE _hyper_1_888_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_888_chunk TO grafana;


--
-- Name: TABLE _hyper_1_892_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_892_chunk TO grafana;


--
-- Name: TABLE _hyper_1_900_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_900_chunk TO grafana;


--
-- Name: TABLE _hyper_1_902_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_902_chunk TO grafana;


--
-- Name: TABLE _hyper_1_908_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_908_chunk TO grafana;


--
-- Name: TABLE _hyper_1_912_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_912_chunk TO grafana;


--
-- Name: TABLE _hyper_1_918_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_918_chunk TO grafana;


--
-- Name: TABLE _hyper_1_922_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_922_chunk TO grafana;


--
-- Name: TABLE _hyper_1_927_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_927_chunk TO grafana;


--
-- Name: TABLE _hyper_1_935_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_935_chunk TO grafana;


--
-- Name: TABLE _hyper_1_937_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_937_chunk TO grafana;


--
-- Name: TABLE _hyper_1_942_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_942_chunk TO grafana;


--
-- Name: TABLE _hyper_1_948_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_948_chunk TO grafana;


--
-- Name: TABLE _hyper_1_952_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_952_chunk TO grafana;


--
-- Name: TABLE _hyper_1_957_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_957_chunk TO grafana;


--
-- Name: TABLE _hyper_1_962_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_962_chunk TO grafana;


--
-- Name: TABLE _hyper_1_967_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_967_chunk TO grafana;


--
-- Name: TABLE _hyper_1_974_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_974_chunk TO grafana;


--
-- Name: TABLE _hyper_1_980_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_980_chunk TO grafana;


--
-- Name: TABLE _hyper_1_982_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_982_chunk TO grafana;


--
-- Name: TABLE _hyper_1_987_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_987_chunk TO grafana;


--
-- Name: TABLE _hyper_1_994_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_994_chunk TO grafana;


--
-- Name: TABLE _hyper_1_997_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_1_997_chunk TO grafana;


--
-- Name: TABLE history_log; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.history_log TO grafana;


--
-- Name: TABLE _hyper_2_1001_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1001_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1006_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1006_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1010_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1010_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1016_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1016_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1020_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1020_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1027_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1027_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1031_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1031_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1038_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1038_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1041_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1041_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1047_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1047_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1053_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1053_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1058_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1058_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1063_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1063_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1067_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1067_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1073_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1073_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1074_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1074_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1083_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1083_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1087_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1087_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1093_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1093_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1098_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1098_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1103_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1103_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1108_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1108_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1112_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1112_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1118_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1118_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1121_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1121_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1128_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1128_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1132_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1132_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1137_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1137_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1143_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1143_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1148_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1148_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1152_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1152_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1158_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1158_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1163_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1163_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1166_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1166_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1172_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1172_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1180_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1180_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1183_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1183_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1188_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1188_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1195_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1195_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1199_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1199_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1203_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1203_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1210_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1210_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1213_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1213_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1220_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1220_chunk TO grafana;


--
-- Name: TABLE _hyper_2_1224_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_1224_chunk TO grafana;


--
-- Name: TABLE _hyper_2_769_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_769_chunk TO grafana;


--
-- Name: TABLE _hyper_2_772_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_772_chunk TO grafana;


--
-- Name: TABLE _hyper_2_779_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_779_chunk TO grafana;


--
-- Name: TABLE _hyper_2_784_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_784_chunk TO grafana;


--
-- Name: TABLE _hyper_2_789_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_789_chunk TO grafana;


--
-- Name: TABLE _hyper_2_794_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_794_chunk TO grafana;


--
-- Name: TABLE _hyper_2_798_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_798_chunk TO grafana;


--
-- Name: TABLE _hyper_2_802_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_802_chunk TO grafana;


--
-- Name: TABLE _hyper_2_809_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_809_chunk TO grafana;


--
-- Name: TABLE _hyper_2_813_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_813_chunk TO grafana;


--
-- Name: TABLE _hyper_2_817_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_817_chunk TO grafana;


--
-- Name: TABLE _hyper_2_823_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_823_chunk TO grafana;


--
-- Name: TABLE _hyper_2_828_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_828_chunk TO grafana;


--
-- Name: TABLE _hyper_2_834_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_834_chunk TO grafana;


--
-- Name: TABLE _hyper_2_839_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_839_chunk TO grafana;


--
-- Name: TABLE _hyper_2_844_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_844_chunk TO grafana;


--
-- Name: TABLE _hyper_2_849_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_849_chunk TO grafana;


--
-- Name: TABLE _hyper_2_854_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_854_chunk TO grafana;


--
-- Name: TABLE _hyper_2_859_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_859_chunk TO grafana;


--
-- Name: TABLE _hyper_2_864_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_864_chunk TO grafana;


--
-- Name: TABLE _hyper_2_868_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_868_chunk TO grafana;


--
-- Name: TABLE _hyper_2_876_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_876_chunk TO grafana;


--
-- Name: TABLE _hyper_2_881_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_881_chunk TO grafana;


--
-- Name: TABLE _hyper_2_886_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_886_chunk TO grafana;


--
-- Name: TABLE _hyper_2_890_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_890_chunk TO grafana;


--
-- Name: TABLE _hyper_2_896_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_896_chunk TO grafana;


--
-- Name: TABLE _hyper_2_901_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_901_chunk TO grafana;


--
-- Name: TABLE _hyper_2_906_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_906_chunk TO grafana;


--
-- Name: TABLE _hyper_2_910_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_910_chunk TO grafana;


--
-- Name: TABLE _hyper_2_916_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_916_chunk TO grafana;


--
-- Name: TABLE _hyper_2_920_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_920_chunk TO grafana;


--
-- Name: TABLE _hyper_2_923_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_923_chunk TO grafana;


--
-- Name: TABLE _hyper_2_930_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_930_chunk TO grafana;


--
-- Name: TABLE _hyper_2_936_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_936_chunk TO grafana;


--
-- Name: TABLE _hyper_2_941_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_941_chunk TO grafana;


--
-- Name: TABLE _hyper_2_946_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_946_chunk TO grafana;


--
-- Name: TABLE _hyper_2_950_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_950_chunk TO grafana;


--
-- Name: TABLE _hyper_2_956_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_956_chunk TO grafana;


--
-- Name: TABLE _hyper_2_961_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_961_chunk TO grafana;


--
-- Name: TABLE _hyper_2_966_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_966_chunk TO grafana;


--
-- Name: TABLE _hyper_2_969_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_969_chunk TO grafana;


--
-- Name: TABLE _hyper_2_976_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_976_chunk TO grafana;


--
-- Name: TABLE _hyper_2_981_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_981_chunk TO grafana;


--
-- Name: TABLE _hyper_2_986_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_986_chunk TO grafana;


--
-- Name: TABLE _hyper_2_991_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_991_chunk TO grafana;


--
-- Name: TABLE _hyper_2_996_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_2_996_chunk TO grafana;


--
-- Name: TABLE history_text; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.history_text TO grafana;


--
-- Name: TABLE _hyper_3_1000_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1000_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1005_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1005_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1011_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1011_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1015_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1015_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1021_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1021_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1028_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1028_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1033_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1033_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1037_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1037_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1042_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1042_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1048_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1048_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1052_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1052_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1057_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1057_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1062_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1062_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1068_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1068_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1072_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1072_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1078_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1078_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1082_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1082_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1088_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1088_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1092_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1092_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1097_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1097_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1102_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1102_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1107_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1107_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1113_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1113_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1117_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1117_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1123_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1123_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1127_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1127_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1133_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1133_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1138_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1138_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1142_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1142_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1147_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1147_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1153_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1153_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1157_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1157_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1162_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1162_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1168_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1168_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1173_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1173_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1179_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1179_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1185_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1185_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1190_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1190_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1192_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1192_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1200_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1200_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1205_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1205_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1209_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1209_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1215_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1215_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1219_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1219_chunk TO grafana;


--
-- Name: TABLE _hyper_3_1225_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_1225_chunk TO grafana;


--
-- Name: TABLE _hyper_3_768_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_768_chunk TO grafana;


--
-- Name: TABLE _hyper_3_773_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_773_chunk TO grafana;


--
-- Name: TABLE _hyper_3_777_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_777_chunk TO grafana;


--
-- Name: TABLE _hyper_3_783_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_783_chunk TO grafana;


--
-- Name: TABLE _hyper_3_788_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_788_chunk TO grafana;


--
-- Name: TABLE _hyper_3_793_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_793_chunk TO grafana;


--
-- Name: TABLE _hyper_3_799_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_799_chunk TO grafana;


--
-- Name: TABLE _hyper_3_804_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_804_chunk TO grafana;


--
-- Name: TABLE _hyper_3_806_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_806_chunk TO grafana;


--
-- Name: TABLE _hyper_3_814_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_814_chunk TO grafana;


--
-- Name: TABLE _hyper_3_819_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_819_chunk TO grafana;


--
-- Name: TABLE _hyper_3_824_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_824_chunk TO grafana;


--
-- Name: TABLE _hyper_3_829_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_829_chunk TO grafana;


--
-- Name: TABLE _hyper_3_833_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_833_chunk TO grafana;


--
-- Name: TABLE _hyper_3_838_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_838_chunk TO grafana;


--
-- Name: TABLE _hyper_3_843_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_843_chunk TO grafana;


--
-- Name: TABLE _hyper_3_848_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_848_chunk TO grafana;


--
-- Name: TABLE _hyper_3_853_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_853_chunk TO grafana;


--
-- Name: TABLE _hyper_3_857_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_857_chunk TO grafana;


--
-- Name: TABLE _hyper_3_863_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_863_chunk TO grafana;


--
-- Name: TABLE _hyper_3_869_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_869_chunk TO grafana;


--
-- Name: TABLE _hyper_3_875_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_875_chunk TO grafana;


--
-- Name: TABLE _hyper_3_879_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_879_chunk TO grafana;


--
-- Name: TABLE _hyper_3_885_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_885_chunk TO grafana;


--
-- Name: TABLE _hyper_3_891_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_891_chunk TO grafana;


--
-- Name: TABLE _hyper_3_895_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_895_chunk TO grafana;


--
-- Name: TABLE _hyper_3_898_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_898_chunk TO grafana;


--
-- Name: TABLE _hyper_3_905_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_905_chunk TO grafana;


--
-- Name: TABLE _hyper_3_909_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_909_chunk TO grafana;


--
-- Name: TABLE _hyper_3_915_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_915_chunk TO grafana;


--
-- Name: TABLE _hyper_3_921_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_921_chunk TO grafana;


--
-- Name: TABLE _hyper_3_926_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_926_chunk TO grafana;


--
-- Name: TABLE _hyper_3_931_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_931_chunk TO grafana;


--
-- Name: TABLE _hyper_3_934_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_934_chunk TO grafana;


--
-- Name: TABLE _hyper_3_940_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_940_chunk TO grafana;


--
-- Name: TABLE _hyper_3_945_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_945_chunk TO grafana;


--
-- Name: TABLE _hyper_3_951_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_951_chunk TO grafana;


--
-- Name: TABLE _hyper_3_955_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_955_chunk TO grafana;


--
-- Name: TABLE _hyper_3_960_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_960_chunk TO grafana;


--
-- Name: TABLE _hyper_3_965_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_965_chunk TO grafana;


--
-- Name: TABLE _hyper_3_971_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_971_chunk TO grafana;


--
-- Name: TABLE _hyper_3_975_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_975_chunk TO grafana;


--
-- Name: TABLE _hyper_3_979_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_979_chunk TO grafana;


--
-- Name: TABLE _hyper_3_985_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_985_chunk TO grafana;


--
-- Name: TABLE _hyper_3_990_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_990_chunk TO grafana;


--
-- Name: TABLE _hyper_3_995_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_3_995_chunk TO grafana;


--
-- Name: TABLE history_str; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.history_str TO grafana;


--
-- Name: TABLE _hyper_4_1003_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1003_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1009_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1009_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1013_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1013_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1019_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1019_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1026_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1026_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1032_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1032_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1036_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1036_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1043_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1043_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1044_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1044_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1051_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1051_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1056_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1056_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1061_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1061_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1065_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1065_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1070_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1070_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1077_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1077_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1080_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1080_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1086_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1086_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1090_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1090_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1095_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1095_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1101_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1101_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1105_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1105_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1111_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1111_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1115_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1115_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1122_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1122_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1126_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1126_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1130_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1130_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1136_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1136_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1141_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1141_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1145_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1145_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1151_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1151_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1155_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1155_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1161_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1161_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1167_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1167_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1171_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1171_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1178_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1178_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1182_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1182_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1187_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1187_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1191_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1191_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1198_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1198_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1202_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1202_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1207_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1207_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1212_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1212_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1217_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1217_chunk TO grafana;


--
-- Name: TABLE _hyper_4_1223_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_1223_chunk TO grafana;


--
-- Name: TABLE _hyper_4_767_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_767_chunk TO grafana;


--
-- Name: TABLE _hyper_4_774_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_774_chunk TO grafana;


--
-- Name: TABLE _hyper_4_776_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_776_chunk TO grafana;


--
-- Name: TABLE _hyper_4_781_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_781_chunk TO grafana;


--
-- Name: TABLE _hyper_4_786_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_786_chunk TO grafana;


--
-- Name: TABLE _hyper_4_791_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_791_chunk TO grafana;


--
-- Name: TABLE _hyper_4_797_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_797_chunk TO grafana;


--
-- Name: TABLE _hyper_4_803_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_803_chunk TO grafana;


--
-- Name: TABLE _hyper_4_805_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_805_chunk TO grafana;


--
-- Name: TABLE _hyper_4_811_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_811_chunk TO grafana;


--
-- Name: TABLE _hyper_4_818_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_818_chunk TO grafana;


--
-- Name: TABLE _hyper_4_822_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_822_chunk TO grafana;


--
-- Name: TABLE _hyper_4_827_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_827_chunk TO grafana;


--
-- Name: TABLE _hyper_4_832_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_832_chunk TO grafana;


--
-- Name: TABLE _hyper_4_837_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_837_chunk TO grafana;


--
-- Name: TABLE _hyper_4_841_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_841_chunk TO grafana;


--
-- Name: TABLE _hyper_4_847_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_847_chunk TO grafana;


--
-- Name: TABLE _hyper_4_852_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_852_chunk TO grafana;


--
-- Name: TABLE _hyper_4_858_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_858_chunk TO grafana;


--
-- Name: TABLE _hyper_4_860_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_860_chunk TO grafana;


--
-- Name: TABLE _hyper_4_866_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_866_chunk TO grafana;


--
-- Name: TABLE _hyper_4_873_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_873_chunk TO grafana;


--
-- Name: TABLE _hyper_4_880_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_880_chunk TO grafana;


--
-- Name: TABLE _hyper_4_882_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_882_chunk TO grafana;


--
-- Name: TABLE _hyper_4_889_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_889_chunk TO grafana;


--
-- Name: TABLE _hyper_4_893_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_893_chunk TO grafana;


--
-- Name: TABLE _hyper_4_897_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_897_chunk TO grafana;


--
-- Name: TABLE _hyper_4_903_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_903_chunk TO grafana;


--
-- Name: TABLE _hyper_4_911_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_911_chunk TO grafana;


--
-- Name: TABLE _hyper_4_913_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_913_chunk TO grafana;


--
-- Name: TABLE _hyper_4_919_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_919_chunk TO grafana;


--
-- Name: TABLE _hyper_4_925_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_925_chunk TO grafana;


--
-- Name: TABLE _hyper_4_929_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_929_chunk TO grafana;


--
-- Name: TABLE _hyper_4_932_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_932_chunk TO grafana;


--
-- Name: TABLE _hyper_4_939_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_939_chunk TO grafana;


--
-- Name: TABLE _hyper_4_943_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_943_chunk TO grafana;


--
-- Name: TABLE _hyper_4_949_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_949_chunk TO grafana;


--
-- Name: TABLE _hyper_4_953_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_953_chunk TO grafana;


--
-- Name: TABLE _hyper_4_958_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_958_chunk TO grafana;


--
-- Name: TABLE _hyper_4_963_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_963_chunk TO grafana;


--
-- Name: TABLE _hyper_4_970_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_970_chunk TO grafana;


--
-- Name: TABLE _hyper_4_972_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_972_chunk TO grafana;


--
-- Name: TABLE _hyper_4_977_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_977_chunk TO grafana;


--
-- Name: TABLE _hyper_4_984_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_984_chunk TO grafana;


--
-- Name: TABLE _hyper_4_988_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_988_chunk TO grafana;


--
-- Name: TABLE _hyper_4_992_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_992_chunk TO grafana;


--
-- Name: TABLE _hyper_4_999_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_4_999_chunk TO grafana;


--
-- Name: TABLE trends; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.trends TO grafana;


--
-- Name: TABLE _hyper_5_1022_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_5_1022_chunk TO grafana;


--
-- Name: TABLE _hyper_5_1174_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_5_1174_chunk TO grafana;


--
-- Name: TABLE _hyper_5_566_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_5_566_chunk TO grafana;


--
-- Name: TABLE _hyper_5_718_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_5_718_chunk TO grafana;


--
-- Name: TABLE _hyper_5_870_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_5_870_chunk TO grafana;


--
-- Name: TABLE trends_uint; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.trends_uint TO grafana;


--
-- Name: TABLE _hyper_6_1023_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_6_1023_chunk TO grafana;


--
-- Name: TABLE _hyper_6_1175_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_6_1175_chunk TO grafana;


--
-- Name: TABLE _hyper_6_567_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_6_567_chunk TO grafana;


--
-- Name: TABLE _hyper_6_719_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_6_719_chunk TO grafana;


--
-- Name: TABLE _hyper_6_871_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_6_871_chunk TO grafana;


--
-- Name: TABLE history_uint; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.history_uint TO grafana;


--
-- Name: TABLE _hyper_7_1004_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1004_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1007_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1007_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1014_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1014_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1018_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1018_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1024_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1024_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1030_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1030_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1035_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1035_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1039_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1039_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1045_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1045_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1050_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1050_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1055_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1055_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1060_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1060_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1066_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1066_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1071_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1071_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1076_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1076_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1081_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1081_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1084_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1084_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1091_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1091_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1096_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1096_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1100_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1100_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1106_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1106_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1110_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1110_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1114_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1114_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1119_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1119_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1125_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1125_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1131_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1131_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1134_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1134_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1139_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1139_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1146_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1146_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1150_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1150_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1156_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1156_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1160_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1160_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1165_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1165_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1170_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1170_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1177_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1177_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1184_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1184_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1189_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1189_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1194_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1194_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1197_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1197_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1204_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1204_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1208_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1208_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1214_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1214_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1218_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1218_chunk TO grafana;


--
-- Name: TABLE _hyper_7_1222_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_1222_chunk TO grafana;


--
-- Name: TABLE _hyper_7_766_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_766_chunk TO grafana;


--
-- Name: TABLE _hyper_7_771_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_771_chunk TO grafana;


--
-- Name: TABLE _hyper_7_778_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_778_chunk TO grafana;


--
-- Name: TABLE _hyper_7_782_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_782_chunk TO grafana;


--
-- Name: TABLE _hyper_7_787_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_787_chunk TO grafana;


--
-- Name: TABLE _hyper_7_792_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_792_chunk TO grafana;


--
-- Name: TABLE _hyper_7_795_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_795_chunk TO grafana;


--
-- Name: TABLE _hyper_7_801_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_801_chunk TO grafana;


--
-- Name: TABLE _hyper_7_808_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_808_chunk TO grafana;


--
-- Name: TABLE _hyper_7_812_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_812_chunk TO grafana;


--
-- Name: TABLE _hyper_7_815_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_815_chunk TO grafana;


--
-- Name: TABLE _hyper_7_821_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_821_chunk TO grafana;


--
-- Name: TABLE _hyper_7_825_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_825_chunk TO grafana;


--
-- Name: TABLE _hyper_7_831_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_831_chunk TO grafana;


--
-- Name: TABLE _hyper_7_835_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_835_chunk TO grafana;


--
-- Name: TABLE _hyper_7_842_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_842_chunk TO grafana;


--
-- Name: TABLE _hyper_7_846_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_846_chunk TO grafana;


--
-- Name: TABLE _hyper_7_851_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_851_chunk TO grafana;


--
-- Name: TABLE _hyper_7_855_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_855_chunk TO grafana;


--
-- Name: TABLE _hyper_7_862_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_862_chunk TO grafana;


--
-- Name: TABLE _hyper_7_867_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_867_chunk TO grafana;


--
-- Name: TABLE _hyper_7_874_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_874_chunk TO grafana;


--
-- Name: TABLE _hyper_7_877_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_877_chunk TO grafana;


--
-- Name: TABLE _hyper_7_884_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_884_chunk TO grafana;


--
-- Name: TABLE _hyper_7_887_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_887_chunk TO grafana;


--
-- Name: TABLE _hyper_7_894_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_894_chunk TO grafana;


--
-- Name: TABLE _hyper_7_899_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_899_chunk TO grafana;


--
-- Name: TABLE _hyper_7_904_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_904_chunk TO grafana;


--
-- Name: TABLE _hyper_7_907_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_907_chunk TO grafana;


--
-- Name: TABLE _hyper_7_914_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_914_chunk TO grafana;


--
-- Name: TABLE _hyper_7_917_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_917_chunk TO grafana;


--
-- Name: TABLE _hyper_7_924_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_924_chunk TO grafana;


--
-- Name: TABLE _hyper_7_928_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_928_chunk TO grafana;


--
-- Name: TABLE _hyper_7_933_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_933_chunk TO grafana;


--
-- Name: TABLE _hyper_7_938_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_938_chunk TO grafana;


--
-- Name: TABLE _hyper_7_944_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_944_chunk TO grafana;


--
-- Name: TABLE _hyper_7_947_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_947_chunk TO grafana;


--
-- Name: TABLE _hyper_7_954_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_954_chunk TO grafana;


--
-- Name: TABLE _hyper_7_959_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_959_chunk TO grafana;


--
-- Name: TABLE _hyper_7_964_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_964_chunk TO grafana;


--
-- Name: TABLE _hyper_7_968_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_968_chunk TO grafana;


--
-- Name: TABLE _hyper_7_973_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_973_chunk TO grafana;


--
-- Name: TABLE _hyper_7_978_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_978_chunk TO grafana;


--
-- Name: TABLE _hyper_7_983_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_983_chunk TO grafana;


--
-- Name: TABLE _hyper_7_989_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_989_chunk TO grafana;


--
-- Name: TABLE _hyper_7_993_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_993_chunk TO grafana;


--
-- Name: TABLE _hyper_7_998_chunk; Type: ACL; Schema: _timescaledb_internal; Owner: zabbix
--

GRANT SELECT ON TABLE _timescaledb_internal._hyper_7_998_chunk TO grafana;


--
-- Name: TABLE acknowledges; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.acknowledges TO grafana;


--
-- Name: TABLE actions; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.actions TO grafana;


--
-- Name: TABLE alerts; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.alerts TO grafana;


--
-- Name: TABLE application_discovery; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.application_discovery TO grafana;


--
-- Name: TABLE application_prototype; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.application_prototype TO grafana;


--
-- Name: TABLE application_template; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.application_template TO grafana;


--
-- Name: TABLE applications; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.applications TO grafana;


--
-- Name: TABLE auditlog; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.auditlog TO grafana;


--
-- Name: TABLE auditlog_details; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.auditlog_details TO grafana;


--
-- Name: TABLE autoreg_host; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.autoreg_host TO grafana;


--
-- Name: TABLE conditions; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.conditions TO grafana;


--
-- Name: TABLE config; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.config TO grafana;


--
-- Name: TABLE config_autoreg_tls; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.config_autoreg_tls TO grafana;


--
-- Name: TABLE corr_condition; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.corr_condition TO grafana;


--
-- Name: TABLE corr_condition_group; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.corr_condition_group TO grafana;


--
-- Name: TABLE corr_condition_tag; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.corr_condition_tag TO grafana;


--
-- Name: TABLE corr_condition_tagpair; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.corr_condition_tagpair TO grafana;


--
-- Name: TABLE corr_condition_tagvalue; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.corr_condition_tagvalue TO grafana;


--
-- Name: TABLE corr_operation; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.corr_operation TO grafana;


--
-- Name: TABLE correlation; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.correlation TO grafana;


--
-- Name: TABLE dashboard; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.dashboard TO grafana;


--
-- Name: TABLE dashboard_user; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.dashboard_user TO grafana;


--
-- Name: TABLE dashboard_usrgrp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.dashboard_usrgrp TO grafana;


--
-- Name: TABLE dbversion; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.dbversion TO grafana;


--
-- Name: TABLE dchecks; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.dchecks TO grafana;


--
-- Name: TABLE dhosts; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.dhosts TO grafana;


--
-- Name: TABLE drules; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.drules TO grafana;


--
-- Name: TABLE dservices; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.dservices TO grafana;


--
-- Name: TABLE escalations; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.escalations TO grafana;


--
-- Name: TABLE event_recovery; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.event_recovery TO grafana;


--
-- Name: TABLE event_suppress; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.event_suppress TO grafana;


--
-- Name: TABLE event_tag; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.event_tag TO grafana;


--
-- Name: TABLE events; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.events TO grafana;


--
-- Name: TABLE expressions; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.expressions TO grafana;


--
-- Name: TABLE functions; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.functions TO grafana;


--
-- Name: TABLE globalmacro; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.globalmacro TO grafana;


--
-- Name: TABLE globalvars; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.globalvars TO grafana;


--
-- Name: TABLE graph_discovery; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.graph_discovery TO grafana;


--
-- Name: TABLE graph_theme; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.graph_theme TO grafana;


--
-- Name: TABLE graphs; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.graphs TO grafana;


--
-- Name: TABLE graphs_items; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.graphs_items TO grafana;


--
-- Name: TABLE group_discovery; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.group_discovery TO grafana;


--
-- Name: TABLE group_prototype; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.group_prototype TO grafana;


--
-- Name: TABLE host_discovery; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.host_discovery TO grafana;


--
-- Name: TABLE host_inventory; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.host_inventory TO grafana;


--
-- Name: TABLE host_tag; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.host_tag TO grafana;


--
-- Name: TABLE hostmacro; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.hostmacro TO grafana;


--
-- Name: TABLE hosts; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.hosts TO grafana;


--
-- Name: TABLE hosts_groups; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.hosts_groups TO grafana;


--
-- Name: TABLE hosts_templates; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.hosts_templates TO grafana;


--
-- Name: TABLE housekeeper; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.housekeeper TO grafana;


--
-- Name: TABLE hstgrp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.hstgrp TO grafana;


--
-- Name: TABLE httpstep; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.httpstep TO grafana;


--
-- Name: TABLE httpstep_field; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.httpstep_field TO grafana;


--
-- Name: TABLE httpstepitem; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.httpstepitem TO grafana;


--
-- Name: TABLE httptest; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.httptest TO grafana;


--
-- Name: TABLE httptest_field; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.httptest_field TO grafana;


--
-- Name: TABLE httptestitem; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.httptestitem TO grafana;


--
-- Name: TABLE icon_map; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.icon_map TO grafana;


--
-- Name: TABLE icon_mapping; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.icon_mapping TO grafana;


--
-- Name: TABLE ids; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.ids TO grafana;


--
-- Name: TABLE images; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.images TO grafana;


--
-- Name: TABLE interface; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.interface TO grafana;


--
-- Name: TABLE interface_discovery; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.interface_discovery TO grafana;


--
-- Name: TABLE interface_snmp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.interface_snmp TO grafana;


--
-- Name: TABLE item_application_prototype; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.item_application_prototype TO grafana;


--
-- Name: TABLE item_condition; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.item_condition TO grafana;


--
-- Name: TABLE item_discovery; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.item_discovery TO grafana;


--
-- Name: TABLE item_preproc; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.item_preproc TO grafana;


--
-- Name: TABLE item_rtdata; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.item_rtdata TO grafana;


--
-- Name: TABLE items; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.items TO grafana;


--
-- Name: TABLE items_applications; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.items_applications TO grafana;


--
-- Name: TABLE lld_macro_path; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_macro_path TO grafana;


--
-- Name: TABLE lld_override; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override TO grafana;


--
-- Name: TABLE lld_override_condition; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_condition TO grafana;


--
-- Name: TABLE lld_override_opdiscover; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_opdiscover TO grafana;


--
-- Name: TABLE lld_override_operation; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_operation TO grafana;


--
-- Name: TABLE lld_override_ophistory; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_ophistory TO grafana;


--
-- Name: TABLE lld_override_opinventory; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_opinventory TO grafana;


--
-- Name: TABLE lld_override_opperiod; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_opperiod TO grafana;


--
-- Name: TABLE lld_override_opseverity; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_opseverity TO grafana;


--
-- Name: TABLE lld_override_opstatus; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_opstatus TO grafana;


--
-- Name: TABLE lld_override_optag; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_optag TO grafana;


--
-- Name: TABLE lld_override_optemplate; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_optemplate TO grafana;


--
-- Name: TABLE lld_override_optrends; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.lld_override_optrends TO grafana;


--
-- Name: TABLE maintenance_tag; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.maintenance_tag TO grafana;


--
-- Name: TABLE maintenances; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.maintenances TO grafana;


--
-- Name: TABLE maintenances_groups; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.maintenances_groups TO grafana;


--
-- Name: TABLE maintenances_hosts; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.maintenances_hosts TO grafana;


--
-- Name: TABLE maintenances_windows; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.maintenances_windows TO grafana;


--
-- Name: TABLE mappings; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.mappings TO grafana;


--
-- Name: TABLE media; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.media TO grafana;


--
-- Name: TABLE media_type; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.media_type TO grafana;


--
-- Name: TABLE media_type_message; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.media_type_message TO grafana;


--
-- Name: TABLE media_type_param; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.media_type_param TO grafana;


--
-- Name: TABLE module; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.module TO grafana;


--
-- Name: TABLE opcommand; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opcommand TO grafana;


--
-- Name: TABLE opcommand_grp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opcommand_grp TO grafana;


--
-- Name: TABLE opcommand_hst; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opcommand_hst TO grafana;


--
-- Name: TABLE opconditions; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opconditions TO grafana;


--
-- Name: TABLE operations; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.operations TO grafana;


--
-- Name: TABLE opgroup; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opgroup TO grafana;


--
-- Name: TABLE opinventory; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opinventory TO grafana;


--
-- Name: TABLE opmessage; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opmessage TO grafana;


--
-- Name: TABLE opmessage_grp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opmessage_grp TO grafana;


--
-- Name: TABLE opmessage_usr; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.opmessage_usr TO grafana;


--
-- Name: TABLE optemplate; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.optemplate TO grafana;


--
-- Name: TABLE problem; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.problem TO grafana;


--
-- Name: TABLE problem_tag; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.problem_tag TO grafana;


--
-- Name: TABLE profiles; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.profiles TO grafana;


--
-- Name: TABLE proxy_autoreg_host; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.proxy_autoreg_host TO grafana;


--
-- Name: TABLE proxy_dhistory; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.proxy_dhistory TO grafana;


--
-- Name: TABLE proxy_history; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.proxy_history TO grafana;


--
-- Name: TABLE regexps; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.regexps TO grafana;


--
-- Name: TABLE rights; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.rights TO grafana;


--
-- Name: TABLE screen_user; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.screen_user TO grafana;


--
-- Name: TABLE screen_usrgrp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.screen_usrgrp TO grafana;


--
-- Name: TABLE screens; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.screens TO grafana;


--
-- Name: TABLE screens_items; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.screens_items TO grafana;


--
-- Name: TABLE scripts; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.scripts TO grafana;


--
-- Name: TABLE service_alarms; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.service_alarms TO grafana;


--
-- Name: TABLE services; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.services TO grafana;


--
-- Name: TABLE services_links; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.services_links TO grafana;


--
-- Name: TABLE services_times; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.services_times TO grafana;


--
-- Name: TABLE sessions; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sessions TO grafana;


--
-- Name: TABLE slides; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.slides TO grafana;


--
-- Name: TABLE slideshow_user; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.slideshow_user TO grafana;


--
-- Name: TABLE slideshow_usrgrp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.slideshow_usrgrp TO grafana;


--
-- Name: TABLE slideshows; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.slideshows TO grafana;


--
-- Name: TABLE sysmap_element_trigger; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmap_element_trigger TO grafana;


--
-- Name: TABLE sysmap_element_url; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmap_element_url TO grafana;


--
-- Name: TABLE sysmap_shape; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmap_shape TO grafana;


--
-- Name: TABLE sysmap_url; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmap_url TO grafana;


--
-- Name: TABLE sysmap_user; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmap_user TO grafana;


--
-- Name: TABLE sysmap_usrgrp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmap_usrgrp TO grafana;


--
-- Name: TABLE sysmaps; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmaps TO grafana;


--
-- Name: TABLE sysmaps_elements; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmaps_elements TO grafana;


--
-- Name: TABLE sysmaps_link_triggers; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmaps_link_triggers TO grafana;


--
-- Name: TABLE sysmaps_links; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.sysmaps_links TO grafana;


--
-- Name: TABLE tag_filter; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.tag_filter TO grafana;


--
-- Name: TABLE task; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.task TO grafana;


--
-- Name: TABLE task_acknowledge; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.task_acknowledge TO grafana;


--
-- Name: TABLE task_check_now; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.task_check_now TO grafana;


--
-- Name: TABLE task_close_problem; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.task_close_problem TO grafana;


--
-- Name: TABLE task_data; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.task_data TO grafana;


--
-- Name: TABLE task_remote_command; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.task_remote_command TO grafana;


--
-- Name: TABLE task_remote_command_result; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.task_remote_command_result TO grafana;


--
-- Name: TABLE task_result; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.task_result TO grafana;


--
-- Name: TABLE timeperiods; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.timeperiods TO grafana;


--
-- Name: TABLE trigger_depends; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.trigger_depends TO grafana;


--
-- Name: TABLE trigger_discovery; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.trigger_discovery TO grafana;


--
-- Name: TABLE trigger_tag; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.trigger_tag TO grafana;


--
-- Name: TABLE triggers; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.triggers TO grafana;


--
-- Name: TABLE users; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.users TO grafana;


--
-- Name: TABLE users_groups; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.users_groups TO grafana;


--
-- Name: TABLE usrgrp; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.usrgrp TO grafana;


--
-- Name: TABLE valuemaps; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.valuemaps TO grafana;


--
-- Name: TABLE widget; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.widget TO grafana;


--
-- Name: TABLE widget_field; Type: ACL; Schema: public; Owner: zabbix
--

GRANT SELECT ON TABLE public.widget_field TO grafana;


--
--

