Skip to content

Commit 684d051

Browse files
committed
Fix answer file for gp_owner_permission
1 parent e2ab426 commit 684d051

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/test/regress/expected/gp_owner_permission.out

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,44 +10,41 @@ SET role = test2;
1010
CREATE database reindexdb2;
1111
\c reindexdb2
1212
BEGIN;
13-
SET role = test1;
13+
SET role = test2;
1414
CREATE TABLE mytab1_heap(a int, b int);
1515
CREATE INDEX idx_mytab1_heap ON mytab1_heap(b);
1616
INSERT INTO mytab1_heap SELECT a , a - 10 FROM generate_series(1,100) a;
1717
DELETE FROM mytab1_heap WHERE a % 4 = 0;
1818
REVOKE ALL PRIVILEGES ON mytab1_heap FROM test2;
19-
NOTICE: no privileges could be revoked
2019
CREATE TABLE mytab1_ao(a int, b int) WITH (appendonly = TRUE);
2120
CREATE INDEX idx_mytab1_ao ON mytab1_ao(b);
2221
INSERT INTO mytab1_ao SELECT a , a - 10 FROM generate_series(1,100) a;
2322
DELETE FROM mytab1_ao WHERE a % 4 = 0;
2423
REVOKE ALL PRIVILEGES ON mytab1_ao FROM test2;
25-
NOTICE: no privileges could be revoked
2624
CREATE TABLE mytab1_aoco(a int, b int) WITH (appendonly = TRUE, orientation = COLUMN);
2725
CREATE INDEX idx_mytab1_aoco ON mytab1_aoco(b);
2826
INSERT INTO mytab1_aoco SELECT a , a - 10 FROM generate_series(1,100) a;
2927
DELETE FROM mytab1_aoco WHERE a % 4 = 0;
3028
REVOKE ALL PRIVILEGES ON mytab1_aoco FROM test2;
31-
NOTICE: no privileges could be revoked
3229
COMMIT;
3330
SET role = test2;
3431
SET client_min_messages=WARNING;
3532
REINDEX DATABASE reindexdb2;
3633
select usename as user_for_reindex_heap from pg_stat_operations where objname = 'idx_mytab1_heap' and subtype = 'REINDEX' ;
3734
user_for_reindex_heap
3835
-----------------------
39-
test1
36+
test2
4037
(1 row)
4138

4239
select usename as user_for_reindex_ao from pg_stat_operations where objname = 'idx_mytab1_ao' and subtype = 'REINDEX' ;
4340
user_for_reindex_ao
4441
---------------------
45-
test1
42+
test2
4643
(1 row)
4744

4845
select usename as user_for_reindex_aoco from pg_stat_operations where objname = 'idx_mytab1_aoco' and subtype = 'REINDEX' ;
4946
user_for_reindex_aoco
5047
-----------------------
51-
test1
48+
test2
5249
(1 row)
5350

src/test/regress/sql/gp_owner_permission.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CREATE database reindexdb2;
1212

1313
\c reindexdb2
1414
BEGIN;
15-
SET role = test1;
15+
SET role = test2;
1616
CREATE TABLE mytab1_heap(a int, b int);
1717
CREATE INDEX idx_mytab1_heap ON mytab1_heap(b);
1818
INSERT INTO mytab1_heap SELECT a , a - 10 FROM generate_series(1,100) a;

0 commit comments

Comments
 (0)