@@ -7,15 +7,15 @@ DROP FUNCTION IF EXISTS _partition_data_concurrent(oid,integer);
7
7
DROP FUNCTION IF EXISTS create_single_range_partition(TEXT,ANYELEMENT,ANYELEMENT,TEXT);
8
8
DROP TABLE IF EXISTS test1 CASCADE;
9
9
DROP TABLE IF EXISTS test2 CASCADE;
10
- DROP ROLE IF EXISTS regress_hacker ;
10
+ DROP ROLE IF EXISTS pathman_regress_hacker ;
11
11
SET client_min_messages = 'notice';
12
12
GRANT CREATE ON SCHEMA public TO PUBLIC;
13
13
CREATE EXTENSION pg_pathman;
14
- CREATE ROLE regress_hacker LOGIN;
14
+ CREATE ROLE pathman_regress_hacker LOGIN;
15
15
-- Test 1
16
16
RESET ROLE;
17
- ALTER ROLE regress_hacker NOSUPERUSER;
18
- SET ROLE regress_hacker ;
17
+ ALTER ROLE pathman_regress_hacker NOSUPERUSER;
18
+ SET ROLE pathman_regress_hacker ;
19
19
SHOW is_superuser;
20
20
is_superuser
21
21
--------------
@@ -26,7 +26,7 @@ CREATE FUNCTION _partition_data_concurrent(relation oid, p_limit INT, OUT p_tota
26
26
RETURNS bigint
27
27
AS $$
28
28
BEGIN
29
- ALTER ROLE regress_hacker SUPERUSER;
29
+ ALTER ROLE pathman_regress_hacker SUPERUSER;
30
30
SELECT _partition_data_concurrent(relation, NULL::text, NULL::text, p_limit) INTO p_total;
31
31
END
32
32
$$ LANGUAGE plpgsql;
@@ -53,7 +53,7 @@ SELECT pg_sleep(1);
53
53
(1 row)
54
54
55
55
-- Test result (must be 'off')
56
- SET ROLE regress_hacker ;
56
+ SET ROLE pathman_regress_hacker ;
57
57
SHOW is_superuser;
58
58
is_superuser
59
59
--------------
@@ -62,8 +62,8 @@ SHOW is_superuser;
62
62
63
63
-- Test 2
64
64
RESET ROLE;
65
- ALTER ROLE regress_hacker NOSUPERUSER;
66
- SET ROLE regress_hacker ;
65
+ ALTER ROLE pathman_regress_hacker NOSUPERUSER;
66
+ SET ROLE pathman_regress_hacker ;
67
67
SHOW is_superuser;
68
68
is_superuser
69
69
--------------
@@ -74,7 +74,7 @@ CREATE FUNCTION create_single_range_partition(parent_relid TEXT, start_value ANY
74
74
RETURNS REGCLASS
75
75
AS $$
76
76
BEGIN
77
- ALTER ROLE regress_hacker SUPERUSER;
77
+ ALTER ROLE pathman_regress_hacker SUPERUSER;
78
78
RETURN create_single_range_partition(parent_relid, start_value, end_value, partition_name, NULL::text);
79
79
END
80
80
$$ LANGUAGE plpgsql;
@@ -89,7 +89,7 @@ SELECT create_range_partitions('test2', 'i', 0, 1);
89
89
90
90
INSERT INTO test2 values(1);
91
91
-- Test result (must be 'off')
92
- SET ROLE regress_hacker ;
92
+ SET ROLE pathman_regress_hacker ;
93
93
SHOW is_superuser;
94
94
is_superuser
95
95
--------------
@@ -112,5 +112,5 @@ NOTICE: drop cascades to 3 other objects
112
112
DETAIL: drop cascades to sequence test2_seq
113
113
drop cascades to table test2_1
114
114
drop cascades to table test2_2
115
- DROP ROLE regress_hacker ;
115
+ DROP ROLE pathman_regress_hacker ;
116
116
DROP EXTENSION pg_pathman;
0 commit comments