Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit47dd11b

Browse files
committed
rename pgsql to postgres in regression.
1 parente236235 commit47dd11b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎src/test/regress/sql/view_perms.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ CREATE VIEW viewperms_v7 AS SELECT * FROM viewperms_v2;
5454
-- v2pgslq
5555
-- v3tuser
5656
-- v4tuser
57-
-- v5pgsql
58-
-- v6pgsql
57+
-- v5postgres
58+
-- v6postgres
5959
-- v7tuser
6060
--
6161
UPDATE pg_classSET relowner= viewperms_testid()
@@ -71,31 +71,31 @@ UPDATE pg_class SET relowner = viewperms_testid()
7171
-- Now for the tests.
7272
--
7373

74-
-- View v1 ownerpgsql has access to t1 owned by tuser
74+
-- View v1 ownerpostgres has access to t1 owned by tuser
7575
SELECT*FROM viewperms_v1;
7676

77-
-- View v2 ownerpgsql has access to t2 owned bypgsql (of cause)
77+
-- View v2 ownerpostgres has access to t2 owned bypostgres (of cause)
7878
SELECT*FROM viewperms_v2;
7979

8080
-- View v3 owner tuser has access to t1 owned by tuser
8181
SELECT*FROM viewperms_v3;
8282

83-
-- View v4 owner tuser has NO access to t2 owned bypgsql
83+
-- View v4 owner tuser has NO access to t2 owned bypostgres
8484
-- MUST fail with permission denied
8585
SELECT*FROM viewperms_v4;
8686

87-
-- v5 (pgsql) can access v2 (pgsql) can access t1 (tuser)
87+
-- v5 (postgres) can access v2 (postgres) can access t1 (tuser)
8888
SELECT*FROM viewperms_v5;
8989

90-
-- v6 (pgsql) can access v4 (tuser) CANNOT access t2 (pgsql)
90+
-- v6 (postgres) can access v4 (tuser) CANNOT access t2 (postgres)
9191
SELECT*FROM viewperms_v6;
9292

93-
-- v7 (tuser) CANNOT access v2 (pgsql) wanna access t2 (pgslq)
93+
-- v7 (tuser) CANNOT access v2 (postgres) wanna access t2 (pgslq)
9494
SELECT*FROM viewperms_v7;
9595

9696
GRANTSELECTON viewperms_v2 TO PUBLIC;
9797
-- but now
98-
-- v7 (tuser) can access v2 (pgsql via grant) can access t2 (pgsql)
98+
-- v7 (tuser) can access v2 (postgres via grant) can access t2 (postgres)
9999
SELECT*FROM viewperms_v7;
100100

101101
--

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp