File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 11EXTENSION = pg_tle
2- EXTVERSION = 1.3.3
2+ EXTVERSION = 1.3.4
33
44SCHEMA = pgtle
55MODULE_big = $(EXTENSION )
66
77OBJS = src/tleextension.o src/guc-file.o src/feature.o src/passcheck.o src/uni_api.o src/datatype.o src/clientauth.o
88
99EXTRA_CLEAN = src/guc-file.c pg_tle.control pg_tle--$(EXTVERSION ) .sql
10- DATA = pg_tle.control pg_tle--1.0.0.sql pg_tle--1.0.0--1.0.1.sql pg_tle--1.0.1--1.0.4.sql pg_tle--1.0.4.sql pg_tle--1.0.4--1.1.1.sql pg_tle--1.1.0--1.1.1.sql pg_tle--1.1.1.sql pg_tle--1.1.1--1.2.0.sql pg_tle--1.2.0--1.3.0.sql pg_tle--1.3.0--1.3.3.sql
10+ DATA = pg_tle.control pg_tle--1.0.0.sql pg_tle--1.0.0--1.0.1.sql pg_tle--1.0.1--1.0.4.sql pg_tle--1.0.4.sql pg_tle--1.0.4--1.1.1.sql pg_tle--1.1.0--1.1.1.sql pg_tle--1.1.1.sql pg_tle--1.1.1--1.2.0.sql pg_tle--1.2.0--1.3.0.sql pg_tle--1.3.0--1.3.3.sql pg_tle--1.3.3--1.3.4.sql
1111
12- REGRESS = pg_tle_api pg_tle_api_clusterwide pg_tle_management pg_tle_injection pg_tle_perms pg_tle_requires pg_tle_datatype pg_tle_versions
12+ TESTS = $(wildcard test/sql/* .sql)
13+ REGRESS = $(patsubst test/sql/% .sql,% ,$(TESTS ) )
1314
1415REGRESS_OPTS = --inputdir=test --temp-config ./regress.conf
1516
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License").
5+ * You may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
17+ -- complain if script is sourced in psql, rather than via CREATE EXTENSION
18+ \echo Use " CREATE EXTENSION pg_tle" to load this file. \quit
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ CREATE ROLE dbuser1;
1717CREATE ROLE dbuser2;
1818GRANT pgtle_admin TO dbuser1;
1919GRANT pgtle_admin TO dbuser2;
20+ REVOKE CREATE ON SCHEMA public FROM PUBLIC;
2021GRANT CREATE, USAGE ON SCHEMA PUBLIC TO dbadmin;
2122GRANT CREATE, USAGE ON SCHEMA PUBLIC TO dbstaff;
2223GRANT USAGE ON SCHEMA PUBLIC TO dbuser1;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ CREATE ROLE dbuser2;
2222GRANT pgtle_admin TO dbuser1;
2323GRANT pgtle_admin TO dbuser2;
2424
25+ REVOKE CREATE ON SCHEMA public FROM PUBLIC;
2526GRANT CREATE, USAGE ON SCHEMA PUBLIC TO dbadmin;
2627GRANT CREATE, USAGE ON SCHEMA PUBLIC TO dbstaff;
2728GRANT USAGE ON SCHEMA PUBLIC TO dbuser1;
You can’t perform that action at this time.
0 commit comments