2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
19 ---------------------------- ROLES ----------------------------
21 CREATE ROLE arrow_web
login password 'arrow';
22 COMMENT ON ROLE arrow_web
IS 'Anonymous login user.';
25 CREATE ROLE arrow_admin
;
26 COMMENT ON ROLE arrow_admin
27 IS 'Can select, insert, update, and delete on all public tables.';
30 CREATE ROLE arrow_anonymous
;
31 COMMENT ON ROLE arrow_anonymous
32 IS 'Can insert and select on all public tables.';
34 GRANT arrow_anonymous
TO arrow_web
;
37 ---------------------------- PRIVILEGES ----------------------------
38 GRANT USAGE ON SCHEMA public TO arrow_anonymous
, arrow_admin
;
41 GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA public TO arrow_admin
;
42 GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public to arrow_admin
;
43 GRANT SELECT, UPDATE, INSERT, DELETE ON ALL TABLES IN SCHEMA public
47 GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA public TO arrow_anonymous
;
48 GRANT SELECT ON ALL TABLES IN SCHEMA public TO arrow_anonymous
;
49 GRANT USAGE, SELECT ON ALL SEQUENCES IN SCHEMA public to arrow_anonymous
;
52 , public.benchmark_language
54 , public.language_implementation_version
55 , public.benchmark_run
56 , public.benchmark_type
59 , public.environment_view
65 --, public.project -- The only disallowed table is `project`.
66 , public.benchmark_run_view
67 , public.benchmark_view
68 , public.environment_view
69 , public.full_benchmark_run_view
70 , public.language_implementation_version_view