-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostgres_db.sql
More file actions
executable file
·469 lines (389 loc) · 17.1 KB
/
postgres_db.sql
File metadata and controls
executable file
·469 lines (389 loc) · 17.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.4.1
-- Dumped by pg_dump version 9.4.1
-- Started on 2015-11-29 16:10:14
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- TOC entry 2010 (class 1262 OID 40960)
-- Name: distributed; Type: DATABASE; Schema: -; Owner: distributed
--
CREATE DATABASE distributed WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United States.1252';
ALTER DATABASE distributed OWNER TO distributed;
\connect distributed
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- TOC entry 176 (class 3079 OID 11855)
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- TOC entry 2013 (class 0 OID 0)
-- Dependencies: 176
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- TOC entry 175 (class 1259 OID 40978)
-- Name: sensor; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE sensor (
id integer NOT NULL,
name character varying(50) NOT NULL,
serial_no character varying(50) NOT NULL,
unit_type character varying(50) NOT NULL,
max_safe_value double precision NOT NULL,
min_safe_value double precision NOT NULL
);
ALTER TABLE sensor OWNER TO postgres;
--
-- TOC entry 174 (class 1259 OID 40976)
-- Name: sensor_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE sensor_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE sensor_id_seq OWNER TO postgres;
--
-- TOC entry 2015 (class 0 OID 0)
-- Dependencies: 174
-- Name: sensor_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE sensor_id_seq OWNED BY sensor.id;
--
-- TOC entry 173 (class 1259 OID 40970)
-- Name: sensor_reading; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE sensor_reading (
id integer NOT NULL,
value double precision NOT NULL,
sensor_id integer,
taken_on timestamp with time zone
);
ALTER TABLE sensor_reading OWNER TO postgres;
--
-- TOC entry 172 (class 1259 OID 40968)
-- Name: sensor_reading_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE sensor_reading_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE sensor_reading_id_seq OWNER TO postgres;
--
-- TOC entry 2018 (class 0 OID 0)
-- Dependencies: 172
-- Name: sensor_reading_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE sensor_reading_id_seq OWNED BY sensor_reading.id;
--
-- TOC entry 1888 (class 2604 OID 40981)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY sensor ALTER COLUMN id SET DEFAULT nextval('sensor_id_seq'::regclass);
--
-- TOC entry 1887 (class 2604 OID 40973)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY sensor_reading ALTER COLUMN id SET DEFAULT nextval('sensor_reading_id_seq'::regclass);
--
-- TOC entry 2005 (class 0 OID 40978)
-- Dependencies: 175
-- Data for Name: sensor; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY sensor (id, name, serial_no, unit_type, max_safe_value, min_safe_value) FROM stdin;
1 boiler_pressure_out MPR-728 MPa 15.4 15.1
4 condensor_pressure_out MPR-317 MPa 0.0022000000000000001 0.00080000000000000004
5 turbine_pressure_out MPR-492 MPa 1.3999999999999999 0.80000000000000004
6 boiler_temp_out XTLR-145 C 625 580
7 turbine_temp_out XTLR-145 C 115 98
8 condensor_temp_out XTLR-145 C 98 83
\.
--
-- TOC entry 2020 (class 0 OID 0)
-- Dependencies: 174
-- Name: sensor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('sensor_id_seq', 8, true);
--
-- TOC entry 2003 (class 0 OID 40970)
-- Dependencies: 173
-- Data for Name: sensor_reading; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY sensor_reading (id, value, sensor_id, taken_on) FROM stdin;
1 2.6980315331465845 5 2015-11-29 05:00:50.396906-08
2 2.5501144115034373 5 2015-11-29 05:00:56.397709-08
3 2.7310923980857713 5 2015-11-29 05:01:02.397181-08
4 2.7490574074550471 5 2015-11-29 05:01:07.396555-08
5 2.6469619683178252 5 2015-11-29 05:01:12.396802-08
6 2.6902862275323192 5 2015-11-29 05:01:18.397281-08
7 3.511279607124159 1 2015-11-29 16:07:07.737676-08
8 3.5549147312639859 4 2015-11-29 16:07:07.71293-08
9 3.4625052420624414 6 2015-11-29 16:07:07.739677-08
10 3.4617168176730866 8 2015-11-29 16:07:07.737676-08
11 4.2885239746269281 5 2015-11-29 16:07:07.739677-08
12 3.1237642332865749 7 2015-11-29 16:07:07.739677-08
13 3.5551273737212865 4 2015-11-29 16:07:31.713152-08
14 5.3894186658380052 8 2015-11-29 16:07:31.739114-08
15 3.4859286150427282 1 2015-11-29 16:07:31.739114-08
16 5.0078061866229451 5 2015-11-29 16:07:31.741059-08
17 6.6313764033187184 7 2015-11-29 16:07:31.741059-08
18 5.5375737348777445 6 2015-11-29 16:07:31.741059-08
19 3.5552039091036503 4 2015-11-29 16:07:36.714029-08
20 6.0299087953856914 8 2015-11-29 16:07:36.739028-08
21 3.5171313461313836 1 2015-11-29 16:07:37.737943-08
22 4.5217337828426771 7 2015-11-29 16:07:37.739921-08
23 5.221089335543379 5 2015-11-29 16:07:37.739921-08
24 5.8959058968950036 6 2015-11-29 16:07:37.739921-08
25 3.5553634495341502 4 2015-11-29 16:07:42.71358-08
26 3.5358494563609901 1 2015-11-29 16:07:42.737593-08
27 5.8724379670698355 8 2015-11-29 16:07:42.737593-08
28 3.8681038932581426 7 2015-11-29 16:07:42.74057-08
29 5.413248692725058 5 2015-11-29 16:07:42.74057-08
30 5.6540753722008494 6 2015-11-29 16:07:43.739457-08
31 3.5570445825255428 8 2015-11-29 16:07:47.737925-08
32 3.8002661609654056 7 2015-11-29 16:07:47.739912-08
33 5.3942358822729606 5 2015-11-29 16:07:47.739912-08
34 3.5552016648298586 4 2015-11-29 16:07:48.713938-08
35 3.4324788250017346 1 2015-11-29 16:07:48.737424-08
36 2.5789273562902326 6 2015-11-29 16:07:49.7407-08
37 2.610787747403021 7 2015-11-29 16:07:52.741139-08
38 3.3771024060361308 1 2015-11-29 16:07:53.737839-08
39 3.3711314034984099 8 2015-11-29 16:07:53.737839-08
40 5.5922270549383395 5 2015-11-29 16:07:53.739844-08
41 3.5551817165455684 4 2015-11-29 16:07:54.712852-08
42 3.0974364583620959 6 2015-11-29 16:07:54.740893-08
43 3.3227093371281362 1 2015-11-29 16:07:58.739079-08
44 5.5778593908585226 5 2015-11-29 16:07:58.740093-08
45 1.0204755236579599 8 2015-11-29 16:07:58.739079-08
46 4.4386340392025012 7 2015-11-29 16:07:58.740093-08
47 3.5549221744623614 4 2015-11-29 16:08:00.712623-08
48 0.99041198485560467 6 2015-11-29 16:08:00.740845-08
49 5.8155789698373717 5 2015-11-29 16:08:03.74072-08
50 3.6954614778479384 7 2015-11-29 16:08:03.74072-08
51 0.86250226092025084 8 2015-11-29 16:08:04.737942-08
52 3.2702211840659596 1 2015-11-29 16:08:04.737942-08
53 3.5550684421363208 4 2015-11-29 16:08:05.712883-08
54 1.4761105163400592 6 2015-11-29 16:08:05.741079-08
55 5.8709637192949629 5 2015-11-29 16:08:08.740589-08
56 2.2369993062770286 7 2015-11-29 16:08:09.740758-08
57 3.555083033112215 4 2015-11-29 16:08:10.714564-08
58 3.2728877451160696 1 2015-11-29 16:08:10.737571-08
59 0.16627213749407288 8 2015-11-29 16:08:10.737571-08
60 0.37974865840443695 6 2015-11-29 16:08:11.739375-08
61 6.0597227835198835 5 2015-11-29 16:08:14.739482-08
62 2.8199792943660427 7 2015-11-29 16:08:14.739482-08
63 -0.32102609707226204 8 2015-11-29 16:08:15.738723-08
64 3.2608454539256115 1 2015-11-29 16:08:15.738723-08
65 3.555050848018058 4 2015-11-29 16:08:16.71299-08
66 -0.33215597149498699 6 2015-11-29 16:08:16.739585-08
67 0.18991550699029791 8 2015-11-29 16:08:20.739121-08
68 3.2002236783814553 1 2015-11-29 16:08:20.739121-08
69 2.1998743189280967 7 2015-11-29 16:08:20.740154-08
70 6.4898555513201819 5 2015-11-29 16:08:20.740154-08
71 3.5550180254400519 4 2015-11-29 16:08:21.712999-08
72 1.7130611389679418 6 2015-11-29 16:08:22.73959-08
73 1.0238840136085767 8 2015-11-29 16:08:26.738762-08
74 3.2763192132044905 1 2015-11-29 16:08:26.738762-08
75 6.9059423561832727 5 2015-11-29 16:08:26.740752-08
76 4.3046097009145177 7 2015-11-29 16:08:26.740752-08
77 3.5552521229751424 4 2015-11-29 16:08:27.712989-08
78 0.99721167691282597 6 2015-11-29 16:08:27.741042-08
79 3.5554942424437721 4 2015-11-29 16:08:32.713454-08
80 0.76782745503035654 8 2015-11-29 16:08:32.738778-08
81 3.3558131561509921 1 2015-11-29 16:08:32.738778-08
82 7.2413244737018845 5 2015-11-29 16:08:32.739813-08
83 5.2083310389473212 7 2015-11-29 16:08:32.739813-08
84 2.3835989343918778 6 2015-11-29 16:08:33.739421-08
85 3.5552178281623039 4 2015-11-29 16:08:38.713099-08
86 0.33965501882457316 8 2015-11-29 16:08:38.738343-08
87 3.2019634794396703 1 2015-11-29 16:08:38.738343-08
88 3.62877778189947 7 2015-11-29 16:08:38.73935-08
89 7.588615147208241 5 2015-11-29 16:08:38.73935-08
90 2.1013555173373089 6 2015-11-29 16:08:39.740445-08
91 3.5553818400710524 4 2015-11-29 16:08:43.712698-08
92 8.1042284551575943 5 2015-11-29 16:08:43.740822-08
93 2.3238008321776262 7 2015-11-29 16:08:43.740822-08
94 1.8758622350333352 8 2015-11-29 16:08:44.73897-08
95 3.2030341156580975 1 2015-11-29 16:08:44.73897-08
96 2.8148613951400692 6 2015-11-29 16:08:44.740935-08
97 3.5550597803969954 4 2015-11-29 16:08:48.713259-08
98 1.4977120332412155 7 2015-11-29 16:08:49.739261-08
99 8.3836733214313224 5 2015-11-29 16:08:49.739261-08
100 -0.068254021548760146 8 2015-11-29 16:08:50.73858-08
101 3.0548534368848279 1 2015-11-29 16:08:50.73858-08
102 0.96888895106160189 6 2015-11-29 16:08:50.740568-08
103 3.554851088207224 4 2015-11-29 16:08:53.713344-08
104 8.6472791354383407 5 2015-11-29 16:08:54.740659-08
105 4.1768933381906628 7 2015-11-29 16:08:54.740659-08
106 2.9042841663910557 1 2015-11-29 16:08:55.739142-08
107 -1.0719335657193723 8 2015-11-29 16:08:55.739142-08
108 0.090584735110512127 6 2015-11-29 16:08:55.741103-08
109 3.5548937944342032 4 2015-11-29 16:08:59.714343-08
110 9.0203464171210896 5 2015-11-29 16:09:00.740532-08
111 2.9051978192242451 7 2015-11-29 16:09:00.740532-08
112 -0.93638466973075585 6 2015-11-29 16:09:00.740532-08
113 2.9181797470712798 1 2015-11-29 16:09:01.738884-08
114 -3.0433687485596348 8 2015-11-29 16:09:01.738884-08
115 3.5550822392048604 4 2015-11-29 16:09:05.714514-08
116 9.471835978646979 5 2015-11-29 16:09:05.739566-08
117 1.1140026856249332 7 2015-11-29 16:09:06.74059-08
118 -0.79537956745523131 6 2015-11-29 16:09:06.74059-08
119 -2.5840800026399107 8 2015-11-29 16:09:07.737603-08
120 3.005110161016765 1 2015-11-29 16:09:07.737603-08
121 9.9486590787805458 5 2015-11-29 16:09:10.739585-08
122 3.5553342322811816 4 2015-11-29 16:09:11.712962-08
123 -0.48321366107746688 7 2015-11-29 16:09:11.740972-08
124 -0.41499414642973642 6 2015-11-29 16:09:11.740972-08
125 -1.8667733446918102 8 2015-11-29 16:09:12.738061-08
126 3.1368003119655694 1 2015-11-29 16:09:12.738061-08
127 3.5554354921391744 4 2015-11-29 16:09:16.71337-08
128 10.581302498424371 5 2015-11-29 16:09:16.7395-08
129 -2.2782662539603269 8 2015-11-29 16:09:17.739027-08
130 0.58296951109669604 7 2015-11-29 16:09:17.741014-08
131 -0.43440549373228787 6 2015-11-29 16:09:17.741014-08
132 3.1122378985932628 1 2015-11-29 16:09:18.737183-08
133 3.5553695257813027 4 2015-11-29 16:09:22.712826-08
134 11.255692269859264 5 2015-11-29 16:09:22.740879-08
135 -3.4591587203067355 8 2015-11-29 16:09:23.737819-08
136 3.1187968830371662 1 2015-11-29 16:09:23.737819-08
137 -1.3768268630318286 6 2015-11-29 16:09:23.739757-08
138 -1.103857073725772 7 2015-11-29 16:09:23.739757-08
139 3.5553160014662333 4 2015-11-29 16:09:28.714318-08
140 12.069559668772088 5 2015-11-29 16:09:28.739394-08
141 -0.91141266343455063 6 2015-11-29 16:09:28.739394-08
142 2.9792452424070794 1 2015-11-29 16:09:29.737465-08
143 -2.5613360725800778 8 2015-11-29 16:09:29.737465-08
144 -2.0650036165828314 7 2015-11-29 16:09:29.739433-08
145 3.555259963266344 4 2015-11-29 16:09:33.713573-08
146 12.778632287781278 5 2015-11-29 16:09:33.739574-08
147 -0.80640352835460416 6 2015-11-29 16:09:33.739574-08
148 -2.4500974934589443 8 2015-11-29 16:09:34.738728-08
149 2.9632407482330501 1 2015-11-29 16:09:34.738728-08
150 -2.5236874438944059 7 2015-11-29 16:09:34.740697-08
151 3.5553790707551367 4 2015-11-29 16:09:39.713016-08
152 2.6353955262348183 6 2015-11-29 16:09:39.740048-08
153 14.400918663297061 5 2015-11-29 16:09:39.740048-08
154 3.042987745540533 1 2015-11-29 16:09:40.737307-08
155 0.2769899673255658 8 2015-11-29 16:09:40.737307-08
156 -2.9466752668688154 7 2015-11-29 16:09:40.739266-08
157 3.5555250302061658 4 2015-11-29 16:09:44.713568-08
158 1.0518969157783118 6 2015-11-29 16:09:44.740259-08
159 14.906146369419456 5 2015-11-29 16:09:44.740259-08
160 3.014906848336032 1 2015-11-29 16:09:45.738595-08
161 -2.0601530376615962 8 2015-11-29 16:09:45.738595-08
162 -4.5135978212964307 7 2015-11-29 16:09:45.74056-08
163 3.5555978090469584 4 2015-11-29 16:09:50.713357-08
164 15.947241463177368 5 2015-11-29 16:09:50.739291-08
165 0.8518743392433995 6 2015-11-29 16:09:50.739291-08
166 -2.4104032797298323 8 2015-11-29 16:09:51.737801-08
167 3.0863153312819449 1 2015-11-29 16:09:51.737801-08
168 -5.0467363286087066 7 2015-11-29 16:09:51.740766-08
169 16.895997578525837 5 2015-11-29 16:09:55.740078-08
170 0.72633702183402393 6 2015-11-29 16:09:55.740078-08
171 3.5558086061451601 4 2015-11-29 16:09:56.714118-08
172 -0.69241383703067516 8 2015-11-29 16:09:57.738347-08
173 3.1802767249416433 1 2015-11-29 16:09:57.738347-08
174 -3.8088062299177459 7 2015-11-29 16:09:57.739359-08
175 18.97817344801361 5 2015-11-29 16:10:01.739398-08
176 3.6574075096198744 6 2015-11-29 16:10:01.739398-08
177 3.5561967403713606 4 2015-11-29 16:10:02.712853-08
178 3.2795410820210358 1 2015-11-29 16:10:02.738939-08
179 0.59385897327242565 8 2015-11-29 16:10:02.738939-08
180 -3.7935352307494021 7 2015-11-29 16:10:02.740904-08
181 19.963061715278677 5 2015-11-29 16:10:06.740566-08
182 2.9028758053377732 6 2015-11-29 16:10:06.740566-08
183 3.5562363375512378 4 2015-11-29 16:10:07.714492-08
184 3.3200950382166026 1 2015-11-29 16:10:08.737512-08
185 -0.32718233205539227 8 2015-11-29 16:10:08.737512-08
186 -3.4427232302850164 7 2015-11-29 16:10:08.7395-08
187 20.667317821781861 5 2015-11-29 16:10:12.740442-08
188 0.2001755049361108 6 2015-11-29 16:10:12.740442-08
189 3.5563801457556039 4 2015-11-29 16:10:13.712902-08
\.
--
-- TOC entry 2021 (class 0 OID 0)
-- Dependencies: 172
-- Name: sensor_reading_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('sensor_reading_id_seq', 192, true);
--
-- TOC entry 1892 (class 2606 OID 40983)
-- Name: sensor_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY sensor
ADD CONSTRAINT sensor_pkey PRIMARY KEY (id);
--
-- TOC entry 1890 (class 2606 OID 40975)
-- Name: sensor_reading_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY sensor_reading
ADD CONSTRAINT sensor_reading_pkey PRIMARY KEY (id);
--
-- TOC entry 2012 (class 0 OID 0)
-- Dependencies: 5
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- TOC entry 2014 (class 0 OID 0)
-- Dependencies: 175
-- Name: sensor; Type: ACL; Schema: public; Owner: postgres
--
REVOKE ALL ON TABLE sensor FROM PUBLIC;
REVOKE ALL ON TABLE sensor FROM postgres;
GRANT ALL ON TABLE sensor TO postgres;
GRANT ALL ON TABLE sensor TO PUBLIC;
--
-- TOC entry 2016 (class 0 OID 0)
-- Dependencies: 174
-- Name: sensor_id_seq; Type: ACL; Schema: public; Owner: postgres
--
REVOKE ALL ON SEQUENCE sensor_id_seq FROM PUBLIC;
REVOKE ALL ON SEQUENCE sensor_id_seq FROM postgres;
GRANT ALL ON SEQUENCE sensor_id_seq TO postgres;
GRANT ALL ON SEQUENCE sensor_id_seq TO PUBLIC;
--
-- TOC entry 2017 (class 0 OID 0)
-- Dependencies: 173
-- Name: sensor_reading; Type: ACL; Schema: public; Owner: postgres
--
REVOKE ALL ON TABLE sensor_reading FROM PUBLIC;
REVOKE ALL ON TABLE sensor_reading FROM postgres;
GRANT ALL ON TABLE sensor_reading TO postgres;
GRANT ALL ON TABLE sensor_reading TO PUBLIC;
--
-- TOC entry 2019 (class 0 OID 0)
-- Dependencies: 172
-- Name: sensor_reading_id_seq; Type: ACL; Schema: public; Owner: postgres
--
REVOKE ALL ON SEQUENCE sensor_reading_id_seq FROM PUBLIC;
REVOKE ALL ON SEQUENCE sensor_reading_id_seq FROM postgres;
GRANT ALL ON SEQUENCE sensor_reading_id_seq TO postgres;
GRANT ALL ON SEQUENCE sensor_reading_id_seq TO PUBLIC;
-- Completed on 2015-11-29 16:10:16
--
-- PostgreSQL database dump complete
--