-
Notifications
You must be signed in to change notification settings - Fork 0
/
gutenberg_cherrypy.sql
88 lines (59 loc) · 2.14 KB
/
gutenberg_cherrypy.sql
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
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.15
-- Dumped by pg_dump version 10.15
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: cherrypy; Type: SCHEMA; Schema: -; Owner: gutenberg
--
CREATE SCHEMA cherrypy;
ALTER SCHEMA cherrypy OWNER TO gutenberg;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: sessions; Type: TABLE; Schema: cherrypy; Owner: gutenberg
--
CREATE TABLE cherrypy.sessions (
id character varying(40) NOT NULL,
expires timestamp without time zone,
data bytea
);
ALTER TABLE cherrypy.sessions OWNER TO gutenberg;
--
-- Name: sessions sessions_pkey; Type: CONSTRAINT; Schema: cherrypy; Owner: gutenberg
--
ALTER TABLE ONLY cherrypy.sessions
ADD CONSTRAINT sessions_pkey PRIMARY KEY (id);
--
-- Name: SCHEMA cherrypy; Type: ACL; Schema: -; Owner: gutenberg
--
GRANT USAGE ON SCHEMA cherrypy TO backupuser;
--
-- Name: TABLE sessions; Type: ACL; Schema: cherrypy; Owner: gutenberg
--
GRANT SELECT ON TABLE cherrypy.sessions TO backupuser;
--
-- Name: DEFAULT PRIVILEGES FOR SEQUENCES; Type: DEFAULT ACL; Schema: cherrypy; Owner: postgres
--
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA cherrypy REVOKE ALL ON SEQUENCES FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA cherrypy GRANT ALL ON SEQUENCES TO gutenberg;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA cherrypy GRANT SELECT ON SEQUENCES TO backupuser;
--
-- Name: DEFAULT PRIVILEGES FOR TABLES; Type: DEFAULT ACL; Schema: cherrypy; Owner: postgres
--
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA cherrypy REVOKE ALL ON TABLES FROM postgres;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA cherrypy GRANT ALL ON TABLES TO gutenberg;
ALTER DEFAULT PRIVILEGES FOR ROLE postgres IN SCHEMA cherrypy GRANT SELECT ON TABLES TO backupuser;
--
-- PostgreSQL database dump complete
--